Next.js Discord

Discord Forum

Correct way of fetching userinfo / profile data from an OIDC provider

Unanswered
Tonkinese posted this in #help-forum
Open in Discord
TonkineseOP
Hey guys, i'm trying access user data from my OIDC provider in a next v15 (auth.js v5) app, what's the correct way of doing doing? I've currently defined jwt() and session() callback functions, but session({ session, token, user }) is giving an undefined value for that user param, do I need to make some additional request to fetch that data or should authjs be doing that automatically?

0 Replies