Better auth / Sveltekit user session doesn't work
Hello,
First of all, I thank the people who will help me to make Better Auth work with Svelte/kit.
For a few days, I have been trying to set up authentication using Sveltekit's SSR. For the moment, I have managed to make the signup page, I have a new user in my PostgreSQL database. When I try to connect, I get the user information, but I do not have a session at the end of the connection. (session or user undefined)
Here is the code that was set up:
First of all, I thank the people who will help me to make Better Auth work with Svelte/kit.
For a few days, I have been trying to set up authentication using Sveltekit's SSR. For the moment, I have managed to make the signup page, I have a new user in my PostgreSQL database. When I try to connect, I get the user information, but I do not have a session at the end of the connection. (session or user undefined)
Here is the code that was set up: