fix(Raindrop Node): Fix issue refreshing OAuth2 credentials

🐛 Fix issue refreshing access token
This commit is contained in:
Ricardo Espinoza 2022-09-02 11:48:04 +02:00 committed by GitHub
parent eb8408b000
commit 3163742fd7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -1146,6 +1146,9 @@ export class HttpRequest implements INodeType {
tokenType: 'Bearer',
property: 'authed_user.access_token',
},
raindropOAuth2Api: {
includeCredentialsOnRefreshOnBody: true,
},
boxOAuth2Api: {
includeCredentialsOnRefreshOnBody: true,
},

View file

@ -40,7 +40,7 @@ export async function raindropApiRequest(
}
try {
return await this.helpers.requestOAuth2!.call(this, 'raindropOAuth2Api', options);
return await this.helpers.requestOAuth2!.call(this, 'raindropOAuth2Api', options, { includeCredentialsOnRefreshOnBody: true });
} catch (error) {
throw new NodeApiError(this.getNode(), error);
}