Skip to content
Snippets Groups Projects
Commit 924bb51c authored by Emmanuel Raviart's avatar Emmanuel Raviart
Browse files

Fix sk-auth URL generation.

parent bc80c384
No related branches found
No related tags found
No related merge requests found
...@@ -40,8 +40,9 @@ export const oauth2Authenticator = ...@@ -40,8 +40,9 @@ export const oauth2Authenticator =
// return token; // return token;
// }, // },
// }, // },
host: baseUrl, host: new URL(baseUrl).host,
jwtSecret: oauth2.jwtSecret, jwtSecret: oauth2.jwtSecret,
protocol: new URL(baseUrl).protocol.replace(/:$/, ""),
providers: [ providers: [
new OAuth2Provider<Profile, Tokens>({ new OAuth2Provider<Profile, Tokens>({
accessTokenUrl: oauth2.accessTokenUrl, accessTokenUrl: oauth2.accessTokenUrl,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment