Elysia + Next.js: No session data on client
Hi,
I’m using Better Auth with Elysia on the back-end and an auth-client on the front-end with Next.js. The login flow seems to be working correctly (I’m using the Microsoft provider), but the user session is not being persisted.
After logging in, the session data always returns as:
{ "data": null, "error": null }
My question is: shouldn’t the session data be available right after login, or do I need to explicitly fetch it from a dedicated endpoint?
client:
server:
0 Replies