ryanisaboi1
BABetter Auth
•Created by Ravi on 2/21/2025 in #help
signInEmail isn't properly setting cookies in production? (NextJS 15/Vercel)
I think i'm running into the same problem! it seems like the the response to signing in is only setting the
better-auth.session_token
cookie but in production better-auth is expecting __Secure-better-auth.session_token
https://github.com/better-auth/better-auth/blob/main/packages/better-auth/src/cookies/index.ts#L250
4 replies