Fix AI comment

This commit is contained in:
Andreas Fitzek
2025-12-05 16:41:14 +01:00
parent 85720ade23
commit f67aa299d5

View File

@@ -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 };