feat: HighLevel oauth2 api credentials (#9542)

This commit is contained in:
Michael Kret
2024-05-30 17:21:50 +03:00
committed by GitHub
parent da41d31bc0
commit be5890536f
4 changed files with 73 additions and 1 deletions

View File

@@ -25,7 +25,12 @@ export class OAuth2CredentialController extends AbstractOAuthController {
// At some point in the past we saved hidden scopes to credentials (but shouldn't)
// Delete scope before applying defaults to make sure new scopes are present on reconnect
// Generic Oauth2 API is an exception because it needs to save the scope
const genericOAuth2 = ['oAuth2Api', 'googleOAuth2Api', 'microsoftOAuth2Api'];
const genericOAuth2 = [
'oAuth2Api',
'googleOAuth2Api',
'microsoftOAuth2Api',
'highLevelOAuth2Api',
];
if (
decryptedDataOriginal?.scope &&
credential.type.includes('OAuth2') &&