fix(common): persist OAuth2 code challenge method selection (#5921)

Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
This commit is contained in:
Umut Keltek 2026-03-13 20:41:13 +03:00 committed by GitHub
parent 4cbe23cf00
commit be536f0ca3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -196,7 +196,10 @@ export const useOAuth2GrantTypes = (
} }
: null, : null,
(value) => { (value) => {
if (!("codeVerifierMethod" in auth.value.grantTypeInfo) || !value) { if (
!value ||
auth.value.grantTypeInfo.grantType !== "AUTHORIZATION_CODE"
) {
return return
} }