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 23, 2023
1 parent 428311b commit 4b6a215
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 4b6a215

Please sign in to comment.