mirror of
https://github.com/n8n-io/n8n.git
synced 2024-08-17 09:00:30 +03:00
fix(LinkedIn Node): Fix issue with legacy credential no longer working (#9912)
This commit is contained in:
parent
7044d1ca28
commit
873b7e59dc
@ -86,7 +86,7 @@ export class LinkedIn implements INodeType {
|
|||||||
// https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin
|
// https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin
|
||||||
async getPersonUrn(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
async getPersonUrn(this: ILoadOptionsFunctions): Promise<INodePropertyOptions[]> {
|
||||||
const authentication = this.getNodeParameter('authentication', 0);
|
const authentication = this.getNodeParameter('authentication', 0);
|
||||||
let endpoint = '/me';
|
let endpoint = '/v2/me';
|
||||||
if (authentication === 'standard') {
|
if (authentication === 'standard') {
|
||||||
const { legacy } = await this.getCredentials('linkedInOAuth2Api');
|
const { legacy } = await this.getCredentials('linkedInOAuth2Api');
|
||||||
if (!legacy) {
|
if (!legacy) {
|
||||||
|
Loading…
Reference in New Issue
Block a user