fix(common): persist OAuth2 code challenge method selection (#5921)
Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
This commit is contained in:
parent
4cbe23cf00
commit
be536f0ca3
1 changed files with 4 additions and 1 deletions
|
|
@ -196,7 +196,10 @@ export const useOAuth2GrantTypes = (
|
|||
}
|
||||
: null,
|
||||
(value) => {
|
||||
if (!("codeVerifierMethod" in auth.value.grantTypeInfo) || !value) {
|
||||
if (
|
||||
!value ||
|
||||
auth.value.grantTypeInfo.grantType !== "AUTHORIZATION_CODE"
|
||||
) {
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue