getUser returns null when Using Kinde and Vercel Multitenancy
Hi, i am using Vercel's multitenancy architecture. I am able to successfully protect my pages at root (eg app.localhost:3000, app.localhost:3000/account etc). however, when i navigate to my subdomains (eg. demo.localhost:3000, xyz.localhost:3000/account), kinde's getUser from getKindeServerSession returns user null even though the user is logged in which i verified when I go to app.localhost:3000. anyone can point me to where i did wrong and how can i resolve this? thanks
2 Replies
Hi @hendry.lim this doc was very recently updated. Can you check this is how you have seet up with vercel?
Kinde docs
Deploy an app on Vercel
Our developer tools provide everything you need to get started with Kinde.