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

This commit is contained in:
dicedtomato 2023-05-10 21:58:14 -07:00 committed by GitHub
parent 61b65700a1
commit 321fa7c39c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -134,7 +134,7 @@ async function handler(req: NextApiReq, res: NextApiRes, user: UserExtended) {
} else if (user.oauth.find((o) => o.provider === 'AUTHENTIK')) {
const resp = await authentik_auth.oauth_user(
user.oauth.find((o) => o.provider === 'AUTHENTIK').token,
config.oauth.authentik_userinfo_url
zconfig.oauth.authentik_userinfo_url
);
if (!resp) {
logger.debug(`oauth expired for ${JSON.stringify(user, jsonUserReplacer)}`);