I am creating session at nest js using supertokens But at frontend level I am not using supertoken ...
k
I am creating session at nest js using supertokens But at frontend level I am not using supertoken service Now I want the session to be available across multiple subdomains Can we do that at backend level by setting some cookie Info while creating a session In the doc provided it is spcific for frontend only using supertoken SDK but I don't want that I am not using supertoken at frontend , how to make sure cookien is stored across multiple subsomains: https://supertokens.com/docs/session/common-customizations/sessions/with-jwt/read-jwt
r
well, if you are not using our frontend SDK, it's on you to figure out how to do this.. why aren't you using our frontend sdk btw?
k
Decisions by Frontend team Isn't there a way at backend ?
r
i mean it's frontend domains that you want to share it across right?
so it must be done on the frontend
on the backend, you can set the cookieDomain value in session.init which will allow the cookies to be sent for *.yourapp.com, but thats about it.
k
Thanks
2 Views