Skip to content

Commit

Permalink
fix(LinkedIn Node): Fix issue with legacy credential no longer working (
Browse files Browse the repository at this point in the history
  • Loading branch information
Joffcom authored and adrian-martinez-onestic committed Jul 8, 2024
1 parent 3c9a256 commit 891dda7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/nodes-base/nodes/LinkedIn/LinkedIn.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export class LinkedIn implements INodeType {
// https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin
async getPersonUrn(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
const authentication = this.getNodeParameter('authentication', 0);
let endpoint = '/me';
let endpoint = '/v2/me';
if (authentication === 'standard') {
const { legacy } = await this.getCredentials('linkedInOAuth2Api');
if (!legacy) {
Expand Down

0 comments on commit 891dda7

Please sign in to comment.