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` * }; * } * }))