We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ca94ecc commit 57bb530Copy full SHA for 57bb530
example/routes/koa.js
@@ -135,7 +135,7 @@ export default (provider) => {
135
if (ctx.method === 'POST') {
136
ctx.status = 303;
137
return ctx.redirect(oidc.buildAuthorizationUrl(google, {
138
- redirect_uri: new URL(GOOGLE_CALLBACK_PATHNAME, ctx.origin),
+ redirect_uri: new URL(GOOGLE_CALLBACK_PATHNAME, ctx.request.URL.origin),
139
scope: 'openid email profile',
140
code_challenge: await oidc.calculatePKCECodeChallenge(code_verifier),
141
code_challenge_method: 'S256',
0 commit comments