fix(core): remove commented out lines

This commit is contained in:
Michael Kret 2022-09-27 17:19:22 +03:00 committed by GitHub
parent 47eb531e98
commit 6ac442a2ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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('&');