Update index.ts

This commit is contained in:
dicedtomato 2023-05-10 22:01:49 -07:00 committed by GitHub
parent 9c17b4e48d
commit 5790a0c449
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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