CookieCache not working

Has this been talked about? I haven't been able to make it work, and I see many comments on this Github issue about it not working. https://github.com/better-auth/better-auth/issues/1752
GitHub
cookieCache not working · Issue #1752 · better-auth/better-auth
Is this suited for github? Yes, this is suited for github To Reproduce I just migrated from next-auth to better-auth on a nextjs project. I am using the auth.ts configuration below and then I get t...
2 Replies
bekacru
bekacru5mo ago
My guess is auth.api.getSession wasn't able to set cookies cause it's only called in a server component context. Make sure - Next Cookies plugin is mounted - You're calling getSession from the client/middleware/server action regularly so it'll be able to set cookies
Ian
IanOP5mo ago
Not using Next. Using React Router with Express backend.

Did you find this page helpful?