Skip to content

Open-Source API Development Ecosystem • https://hoppscotch.io • Offline, On-Prem & Cloud • Web, Desktop & CLI • Open-Source Alternative to Postman, Insomnia

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.ts
index 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,
}),
}),
})