mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 10:31:15 +00:00
fix(core): remove commented out lines
This commit is contained in:
@@ -140,10 +140,6 @@ oauth2CredentialController.get(
|
|||||||
|
|
||||||
// if scope uses comma, change it as the library always return then with spaces
|
// if scope uses comma, change it as the library always return then with spaces
|
||||||
if ((get(oauthCredentials, 'scope') as string).includes(',')) {
|
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 data = returnUri.split('?')[1];
|
||||||
const scope = get(oauthCredentials, 'scope') as string;
|
const scope = get(oauthCredentials, 'scope') as string;
|
||||||
const percentEncoded = [data, `scope=${encodeURIComponent(scope)}`].join('&');
|
const percentEncoded = [data, `scope=${encodeURIComponent(scope)}`].join('&');
|
||||||
|
|||||||
Reference in New Issue
Block a user