Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia
TypeScript apiapi-clientapi-restapi-testingdeveloper-toolsgraphqlhttphttp-clientpwarestrest-apispatestingtesting-toolstoolsvuevuejswebsocket
fix(common): persist OAuth2 code challenge method selection (#5921)
Umut Keltekbe536f0ca3d1
diff --git a/packages/hoppscotch-common/src/composables/oauth2/useOAuth2GrantTypes.ts b/packages/hoppscotch-common/src/composables/oauth2/useOAuth2GrantTypes.tsindex f46fc923a..ea62fc29a 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}