T3 app session works fine locally but doesn't work when deployed on Vercel
Hey! So I have this t3 app I created about a month ago. I've been working on it locally since then, and I have had no issues with the getting the auth and
useSession()
and signIn()
functionality from Next-Auth.
However, I deployed it to Vercel yesteday, I have been running into an issue where, shortly after a successful sign in (usually after few seconds), the auth seems to stop working all of a sudden, and the call to useSession starts returning empty, effectively logging the user out.
I was hoping someone her has had a similar issue/bug? If yes, please how did you fix it?0 Replies