Skip to content

Commit

Permalink
Fix login instance preset by using auth endpoint getter #118
Browse files Browse the repository at this point in the history
  • Loading branch information
hupf committed Oct 25, 2023
1 parent 14b366b commit 52e788b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils/auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ export function createOAuthClient(): OAuth2Client {
server: envSettings.oAuthServer,
clientId: envSettings.oAuthClientId,
tokenEndpoint: `${envSettings.oAuthPrefix}/Authorization/Token`,
authorizationEndpoint: getAuthorizationEndpoint(),
get authorizationEndpoint() {
return getAuthorizationEndpoint();
},
fetch: (...args) => fetch(...args), // Fix for https://github.com/badgateway/oauth2-client/issues/105
});
}
Expand Down

0 comments on commit 52e788b

Please sign in to comment.