© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
api/auth/get-session returns null in prod but works locally - Better Auth
BA
Better Auth
•
11mo ago
•
44 replies
M_Cavus
api/auth/get-session returns null in prod but works locally
hi
, my backend is made with express
/node
.js and my frontend with nextjs but the get
-session api returns null in production whereas everything works perfectly locally
.
Similar Threads
/api/auth/sign-in/social returns data, cookie is set, /get-session returns null
BA
Better Auth / help
6mo ago
api.auth.getSession returns null
BA
Better Auth / help
9mo ago
GET /api/auth/get-session
BA
Better Auth / help
11mo ago
session always returns null
BA
Better Auth / help
9mo ago