Cookie not persisting on client
I am testing better-auth with a frontend on http://localhost:5173 and a backend on hono + aws lambda. The request works but the cookie is not being persisted in the browser.
On the client I have a pretty standard configuration
and my server looks like
Am I missing something?
This is a react + vite SPA
2 Replies
I have the same problem but with Express.js. The problem only occurs in my mobile Chrome browser (without enabling incognito mode). If incognito mode is enabled or using a different browser, the cookie persists on client.
I tried deleting all of the cookies and trying logging in but still in vain.
no luck yet, I'll post here if I have a solution