From ad9104f3cf73cc7bcd2dd61cee9373f682fa9e32 Mon Sep 17 00:00:00 2001 From: Michael Kret <88898367+michael-radency@users.noreply.github.com> Date: Tue, 27 Sep 2022 17:19:22 +0300 Subject: [PATCH] fix(core): remove commented out lines --- packages/cli/src/credentials/oauth2Credential.api.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/packages/cli/src/credentials/oauth2Credential.api.ts b/packages/cli/src/credentials/oauth2Credential.api.ts index 5c04dfd541b8b..3cfa8c926116f 100644 --- a/packages/cli/src/credentials/oauth2Credential.api.ts +++ b/packages/cli/src/credentials/oauth2Credential.api.ts @@ -140,10 +140,6 @@ oauth2CredentialController.get( // if scope uses comma, change it as the library always return then with spaces if ((get(oauthCredentials, 'scope') as string).includes(',')) { - // const data = new URLSearchParams(returnUri.split('?')[1]); - // data.set('scope', get(oauthCredentials, 'scope') as string); - // returnUri = `${get(oauthCredentials, 'authUrl', '') as string}?${data.toString()}`; - const data = returnUri.split('?')[1]; const scope = get(oauthCredentials, 'scope') as string; const percentEncoded = [data, `scope=${encodeURIComponent(scope)}`].join('&');