SignIn doesn't work server side

I think I have an issue related headers or cookies. I'm using nextjs 15, authClient works flawlessly, also server-side getSession works fine too. but when i try to auth.api.signInEmail(), it creates a new session to db, but not returning session on browser, even after refresh. Any Ideas?
Was this page helpful?