Update oauth.js

This commit is contained in:
Hugh O'Brien 2021-08-07 06:29:49 +01:00 committed by GitHub
parent b036863dda
commit 967ad773eb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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