How to handle multi-user authentication

In my app, I have many types of users, like: student, teacher and more
3 Replies
Titus
Titus2mo ago
Use the role field
Terry
TerryOP2mo ago
but my db is too complex I have multiple tables
Titus
Titus2mo ago
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-role
Admin | Better Auth
Admin plugin for Better Auth

Did you find this page helpful?