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