From 8a5cf56bb23da675b856fd243f92cfc9ee4d6f8e Mon Sep 17 00:00:00 2001 From: Adam Mcgrath Date: Tue, 9 Mar 2021 09:32:10 +0000 Subject: [PATCH] You can't use `req.oidc.fetchUserInfo` because `req.oidc` doesn't have an AT at this point. (#199) --- index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 80e58270..315c1610 100644 --- a/index.d.ts +++ b/index.d.ts @@ -350,10 +350,10 @@ interface ConfigParams { * app.use(auth({ * ... * afterCallback: async (req, res, session, decodedState) => { - * const additionalUserClaims = await req.oidc.fetchUserInfo(); + * const userProfile = await request(`${issuerBaseURL}/userinfo`); * return { * ...session, - * ...additionalUserClaims + * userProfile // access using `req.appSession.userProfile` * }; * } * }))