Revok acceess
Hi,
I' m working on rbac system with nextjs app router and I want to revok access from a user when it is suspended but it does not work.
1 Reply
Hi Ahmat, it sounds like you're trying to revoke access but it's not sticking. To fully revoke a user's session, ensure that you're correctly targeting active sessions and that the
deleteUserSessions
method is executed properly. Also, double-check that the refreshUserClaims
method is not revalidating the user's session. Sometimes, clearing local storage or cached data on the client side can help prevent old session data from persisting. If the issue persists, please reach out again and we can dive deeper.