Skip to content

Commit

Permalink
fix: use authorizationUrl correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
balazsorban44 committed Feb 1, 2021
1 parent b43e7dc commit ecddaf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/lib/oauth/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import logger from '../../../lib/logger'
export default function oAuthClient (provider) {
if (provider.version?.startsWith('2.')) {
// Handle OAuth v2.x
const authorizationUrl = new URL(provider.authorizationUrl).origin
const authorizationUrl = new URL(provider.authorizationUrl)
const basePath = authorizationUrl.origin
const authorizePath = authorizationUrl.pathname
const accessTokenPath = new URL(provider.accessTokenUrl).pathname
Expand Down

0 comments on commit ecddaf6

Please sign in to comment.