Best approach for handling two user types (CMS + App) with Better Auth and Prisma
Hey everyone!
I’m currently building a project where I’ll have two separate frontends: A CMS for internal/admin users and A client app (for normal users)
Both will use the same Express backend, and I’m using Better Auth for authentication together with Prisma and MongoDB.
I want to keep the users separated.. for example:
My confusion is around how to best structure authentication for both of these.
it seems tied to a single auth instance, and I’m not sure how to handle having two different user models or auth flows (one for the CMS, one for the app).
Should I:
I’d really appreciate any suggestions or best practices from those who have done something similar..
0 Replies