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
rp_st
11/03/2023, 5:31 AM
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
krrishan
11/03/2023, 5:34 AM
Decisions by Frontend team
Isn't there a way at backend ?
r
rp_st
11/03/2023, 5:41 AM
i mean it's frontend domains that you want to share it across right?
rp_st
11/03/2023, 5:41 AM
so it must be done on the frontend
rp_st
11/03/2023, 5:42 AM
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.