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•15mo 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
sommeeeR•15mo 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•15mo ago
sure, just change role on prisma studio
Want results from more Discord servers?
Add your server