How to handle multi-user authentication
In my app, I have many types of users, like: student, teacher and more
3 Replies
Use the
role
fieldbut my db is too complex I have multiple tables
If you are using better-auth to manage authentications, then the
role
field is what you need.
https://www.better-auth.com/docs/plugins/admin#set-user-roleAdmin | Better Auth
Admin plugin for Better Auth