Skip to content

Commit

Permalink
fix(core): remove commented out lines
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-radency authored Sep 27, 2022
1 parent 82c868a commit ad9104f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/cli/src/credentials/oauth2Credential.api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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('&');
Expand Down

0 comments on commit ad9104f

Please sign in to comment.