Closed imprakharshukla closed 6 months ago
Would also love to see this feature. Definitely a huge thing for multi-tenant. There may be unauthenticated pages (like their public blog), but they would also be able to make their own sites without exposing the rest of the users pages.
I rolled my own auth for this since NextJS (AuthJS) does not really support this yet.
Thank you for the amazing work on this repo!
I wanted to ask how can I support users logging on the tenant's website as well.
Here's what I wanted to do:
Since the /api can only have one auth route, I though of doing something like this firstly:
but next complains that i am not returning a response here.
My auth-options look something like this:
Here: User-> Users who sign up on the admin panel Customer-> Customer who sign up on the tenant website.