I'm trying to set up a Next js app with Next-Auth and Credential provider (Users stored in MongoDB). I can't figure out how to kick or ban a user that is already logged in.
Should the app look at every page load if the user exist/is not disabled and if it's not than redirect to signout or there's a better way of doing it?
Thanks!!