Secure cookies not working in production
I'm using Nextjs 15 with React 19 and latest version of better-auth 1.1.4
My production is not using the secure better auth cookies and when i add the
useSecureCookies: true
in my auth config no cookies get stored and I'm not able to login.
I'm using the Organization
plugin, Magic Link
plugin, nextCookies
plugin, as well as session cookie cache
enabled
1 Reply
make sure to set
BETTER_AUTH_URL
set to the production url