Use remote auth (other domain) on localhsot frontend

Hello, I use better-auth in my api (fastify), that's hosted on api.example.com


but I wanna interact with the api/auth from localhost (nextjs)


The issue I get is when I login, I get a Error Code: state_mismatch probably due to some cookie/domain config that I don't know of
Was this page helpful?