fix(oidc): update params to include prompt for login while maintaining PKCE support

This commit is contained in:
Victor Santos
2025-12-21 18:21:48 -03:00
parent bded8a4b66
commit cd81030b62

View File

@@ -717,7 +717,7 @@ export const oidcConfigServiceFactory = ({
client,
passReqToCallback: true,
usePKCE: supportsPKCE,
params: supportsPKCE ? { code_challenge_method: "S256" } : undefined
params: { prompt: "login", ...(supportsPKCE ? { code_challenge_method: "S256" } : {}) }
},
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(_req: any, tokenSet: TokenSet, cb: any) => {