signIn.email doesn't include session in response
my frontend and server are in different ports, i'm using the client sdk to login with email, but it doesn't return the session object in response. what should i do ?
10 Replies
it shouldn't return the session the object. It should just the session cookie.
Hi thx for answering
what if frontend and api backend are not in same domain, then it doesn't allow to get 'set-cookie' headery
It does. You just need to modify your cookies attributes in your auth config.
is this correct ?

remove crossSubdomainCookie
i guess something wrong with my code, idk


you can't access http only cookies on the client. they are stored in your browser and only sent to the server

Unknown User•6mo ago
Message Not Public
Sign In & Join Server To View
tbh i had few problems with nestjs, i decide to not use for a while