mirror of
https://github.com/n8n-io/n8n.git
synced 2025-12-05 19:27:26 -06:00
Fix AI comment
This commit is contained in:
@@ -176,9 +176,9 @@ export class OAuth2TokenIntrospectionIdentifier implements ITokenIdentifier {
|
||||
const authHeaders: Record<string, string> = {};
|
||||
const authParams: Record<string, string> = {};
|
||||
|
||||
const credentials = Buffer.from(`${options.clientId}:${options.clientSecret}`).toString(
|
||||
'base64',
|
||||
);
|
||||
const credentials = Buffer.from(
|
||||
`${encodeURIComponent(options.clientId)}:${encodeURIComponent(options.clientSecret)}`,
|
||||
).toString('base64');
|
||||
authHeaders['Authorization'] = `Basic ${credentials}`;
|
||||
|
||||
return { headers: authHeaders, params: authParams };
|
||||
|
||||
Reference in New Issue
Block a user