I'm having trouble understanding how role manageme...
# support-questions-legacy
e
I'm having trouble understanding how role management is supposed to work. I have db migrations that run on SERVER 1. I want to control all migrations/db changes in one place, so I included a custom mechanism for mutating user roles as well. This necessitates calling supertokens.init() on SERVER 1. I then build a nextjs app, on SERVER 2. I thought, it shouldn't be concerned with schema changes. If I want to use supertokens via
/api/auth
and
/auth
routes, that too will necessitate a call to
supertokens.init()
, and this seems to be a problem because it's been called elsewhere. How are ppl managing roles? It seems backwards to have to call the nextjs app to handle what should be a backend/operations task... Apologies if this is a really stupid question. I just wanted to isolate schema changes and be able to automate them remotely / independently: if that is architecturally stupid / noone does that, and I should stop, lmk!