1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-07-14 16:30:27 +03:00

fix(LinkedIn Node): Fix issue with legacy credential no longer working (#9912)

This commit is contained in:
Jon 2024-07-02 16:45:30 +01:00 committed by GitHub
parent 7044d1ca28
commit 873b7e59dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {