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
barry
barry•2y ago
Just add a role column to the user model And include it in the next-auth callback t3 docs show how last i checked
sommeeeR
sommeeeROP•2y ago
Ok and then I just choose who to become admin and update my db on the outside? 😊 Ill try it out now
barry
barry•2y ago
sure, just change role on prisma studio

Did you find this page helpful?