Server auth not working (SvelteKit) via signin with email

Hey everyone, When I try to sign in with email and with server actions, the session doesnt seem to set or authentication simply doesnt complete
In this code:
try { let res = await auth.api.signInEmail({ body: { email, password } }); console.log(res.user); } catch (err) { if (err instanceof APIError) { error(400, { message: err.message }); } }

the user does get logged in the console but my session is still empty, Is this a bug? or am simply doing something wrong?
Do we need to set the user session ?
Thanks!
Was this page helpful?