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): oauth2 password flow not respecting scopes (#4940)
Christoffer Hjalmarssonba165bc505f6
diff --git a/packages/hoppscotch-common/src/services/oauth/flows/password.ts b/packages/hoppscotch-common/src/services/oauth/flows/password.tsindex f5d12ab4a..2b35f619c 100644--- a/packages/hoppscotch-common/src/services/oauth/flows/password.ts+++ b/packages/hoppscotch-common/src/services/oauth/flows/password.ts@@ -76,7 +76,7 @@ const initPasswordOauthFlow = async ({client_secret: clientSecret,}),...(scopes && {- scopes: scopes,+ scope: scopes,}),}),})