On Production useSession return empty object #7820
-
Question 💬Hi I am try to use next-auth for my project. When I run via "npm run dev" all work fine, but if I deploy it to firebase hosting getSession/useSession always return enpty object. I guess problem around my server(hostinig) but not sure.
.env.local
Package.json
functions.js
firebase.json
[...nextauth].api.ts
How to reproduce ☕️Setup new project with next js and copy my files links
Contributing 🙌🏽Yes, I am willing to help answer this question in a PR |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This is happens because firebase hosting support only "__session" name for cookies |
Beta Was this translation helpful? Give feedback.
-
dealing with this too, but it's happening randomly. sometimes it would show a value, sometimes not |
Beta Was this translation helpful? Give feedback.
This is happens because firebase hosting support only "__session" name for cookies