Next.js Discord

Discord Forum

How Admin can change user roles triggering user's session update?

Unanswered
Cape lion posted this in #help-forum
Open in Discord
Cape lionOP
Hi all. i'm building my first next.js app. I' ve added auth with next-auth using a discord provider. i chose jwt session strategy creating a custom object with data fetched from db. i want to create a data table, allowing to edit user roles and then triggering session update for the user . i know the way i coded the auth process makes hard to do this, however i can change it based on what i need to have to create that table. what's most important is to be able to ban users, revoking access to the website .

0 Replies