Skip to content

Commit

Permalink
You can't use req.oidc.fetchUserInfo because req.oidc doesn't hav…
Browse files Browse the repository at this point in the history
…e an AT at this point. (#199)
  • Loading branch information
adamjmcgrath authored Mar 9, 2021
1 parent 3adcd92 commit 8a5cf56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`
* };
* }
* }))
Expand Down

0 comments on commit 8a5cf56

Please sign in to comment.