fix(generic-oauth): remove code verifier on verification request if pkce isn't enabled

This commit is contained in:
Bereket Engida
2025-01-15 12:09:28 +03:00
parent 0124f0adff
commit 6dc8422413

View File

@@ -492,7 +492,7 @@ export const genericOAuth = (options: GenericOAuthOptions) => {
}
tokens = await validateAuthorizationCode({
code,
codeVerifier,
codeVerifier: provider.pkce ? codeVerifier : undefined,
redirectURI: `${ctx.context.baseURL}/oauth2/callback/${provider.providerId}`,
options: {
clientId: provider.clientId,