Adding roles to Next Auth when using Discord or Facebook providee
How can I add a role to a user. I have 2 admins and the rest are normal users.
3 Replies
Just add a role column to the user model
And include it in the next-auth callback
t3 docs show how last i checked
Ok and then I just choose who to become admin and update my db on the outside? 😊
Ill try it out now
sure, just change role on prisma studio