How to authenticate users on a dynamic sudomain (next-auth)
Hey ! Hope you're doing well, I'm working on a project and I try to implement authentication on multiple domain with next-auth and Next.js Pages router. Here is a basic schema : - app.localhost:3000 (Admin only subdomain for managing the app, authentication needed) - [tenant].localhost:3000 (Authentication needed here using next-auth)
Can someone help me with this. Currently, I got it working but I can't access session while i'm calling useSession from