diff --git a/packages/hoppscotch-common/src/composables/oauth2/useOAuth2GrantTypes.ts b/packages/hoppscotch-common/src/composables/oauth2/useOAuth2GrantTypes.ts index f46fc923..ea62fc29 100644 --- a/packages/hoppscotch-common/src/composables/oauth2/useOAuth2GrantTypes.ts +++ b/packages/hoppscotch-common/src/composables/oauth2/useOAuth2GrantTypes.ts @@ -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 }