fix: oauth (#18725)

This commit is contained in:
Daniel Dietzler 2025-05-30 22:04:52 +02:00 committed by GitHub
parent 97503d11c5
commit 9d04853b34
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -40,8 +40,8 @@ export class OAuthRepository {
redirect_uri: redirectUrl, redirect_uri: redirectUrl,
scope: config.scope, scope: config.scope,
state, state,
code_challenge: codeChallenge, code_challenge: client.serverMetadata().supportsPKCE() ? codeChallenge : '',
code_challenge_method: 'S256', code_challenge_method: client.serverMetadata().supportsPKCE() ? 'S256' : '',
}).toString(); }).toString();
return { url, state, codeVerifier }; return { url, state, codeVerifier };
} }