Update src/pages/api/user/index.ts

This commit is contained in:
dicedtomato 2023-05-10 21:58:32 -07:00 committed by GitHub
parent e3b65ae15c
commit 2f31305796
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ async function handler(req: NextApiReq, res: NextApiRes, user: UserExtended) {
error: 'oauth token expired',
redirect_uri: authentik_auth.oauth_url(
zconfig.oauth.authentik_client_id,
`${config.core.return_https ? 'https' : 'http'}://${req.headers.host}`,
`${zconfig.core.return_https ? 'https' : 'http'}://${req.headers.host}`,
config.oauth.authentik_authorize_url
),
});