Userinfo undefined, even though authentication works


Code can be found here:

I am having trouble setting up a basic Node & Express app with authentication. The authentication piece seems to be working, as my profile page is only accessible when logged in, but whenever I call req.userinfo, it returns undefined, such as on my test page.

Any thoughts as to why I can’t access any userinfo?

Can you try req.userContext.userinfo and see if that works?