Next.js Discord

Discord Forum

Accessing custom fields from session user object (Auth.js + Prisma)

Unanswered
Cornish Rex posted this in #help-forum
Open in Discord
Cornish RexOP
I have added additional "username" field to my User prisma model, but the only way I can access it is by prisma query to database. Is there any way to get the field from session object?

0 Replies