Update src/pages/api/user/index.ts
This commit is contained in:
parent
61b65700a1
commit
321fa7c39c
1 changed files with 1 additions and 1 deletions
|
@ -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)}`);
|
||||
|
|
Loading…
Add table
Reference in a new issue