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
bekacru
bekacru6mo ago
it shouldn't return the session the object. It should just the session cookie.
Amirreza
AmirrezaOP6mo ago
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
bekacru
bekacru6mo ago
It does. You just need to modify your cookies attributes in your auth config.
Amirreza
AmirrezaOP6mo ago
is this correct ?
No description
bekacru
bekacru6mo ago
remove crossSubdomainCookie
Amirreza
AmirrezaOP6mo ago
i guess something wrong with my code, idk
No description
No description
bekacru
bekacru6mo ago
you can't access http only cookies on the client. they are stored in your browser and only sent to the server
Amirreza
AmirrezaOP6mo ago
No description
Unknown User
Unknown User6mo ago
Message Not Public
Sign In & Join Server To View
Amirreza
AmirrezaOP6mo ago
tbh i had few problems with nestjs, i decide to not use for a while

Did you find this page helpful?