Platforms starter kit, multiple NextAuth implementations
Unanswered
Drever posted this in #help-forum
DreverOP
Hey, I'm using the platform starter kit with auth0 and next-auth. Is it possible to use 2 different auth routers for 2 different authentication pages/apps? 1 would be for e.g.:
app.domain.com/dashboard and the other would be subdomain.domain.com/dashboard and they would cover 2 different apps. The first one would be an admin panel for the platform employees, and the second would be a white label login for users registering through the subdomain. Anyone got any examples or ideas? Thanks.6 Replies
Golden-winged Warbler
2 apps, 1 db
It will likely be easier to have them separate in the long run
It will likely be easier to have them separate in the long run
DreverOP
possible to split, but they use the same records anyways. Any ideas where to start?
Golden-winged Warbler
build two apps, share some code, deploy each, use same database creds (or maybe different if you want better isolation)
you'll have to think through how you want auth to work, shared or separate
Golden-winged Warbler
oh, another option is to put them under different paths in the same server, and then use a proxy like nginx to handle the request rewrites
My personal preference is to separate them, to not have internal admin interfaces / apis in user facing services