Skip to content

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

Update oauth.js

Hugh O'Brien967ad773ebb8
diff --git a/helpers/oauth.js b/helpers/oauth.js
index 15bd0ae55..8e67ce202 100644
--- a/helpers/oauth.js
+++ b/helpers/oauth.js
@@ -154,10 +154,10 @@ const tokenRequest = async ({
}) => {
// Check oauth configuration
if (oidcDiscoveryUrl !== "") {
- const { authorizationEndpoint, tokenEndpoint } =
+ const { authorization_endpoint, token_endpoint } =
await getTokenConfiguration(oidcDiscoveryUrl)
- authUrl = authorizationEndpoint
- accessTokenUrl = tokenEndpoint
+ authUrl = authorization_endpoint
+ accessTokenUrl = token_endpoint
}
// Store oauth information