https://supertokens.com/ logo
Title
u

γƒ”γƒ§γƒˆγƒ«πŸΊ

02/12/2023, 1:39 PM
Ok. I asked because I have backend in nestjs so in another repositorium so I think I cannot use https://supertokens.com/docs/thirdpartyemailpassword/nextjs/session-verification/in-ssr#1-we-use-getsession-in-getserversidepropsπŸ€”
r

rp

02/12/2023, 1:41 PM
Your backend is in nestjs, but your frontend is served via nextjs. Therefore SSR applies to nextjs.
u

γƒ”γƒ§γƒˆγƒ«πŸΊ

02/12/2023, 1:43 PM
so do I need change backendConfig on frontendConfig?
r

rp

02/12/2023, 1:43 PM
im not sure what you mean.
Everything is explained in our guides. I would suggest that you understand how it works and follow through.
u

γƒ”γƒ§γƒˆγƒ«πŸΊ

02/12/2023, 1:44 PM
I mean supertokensNode.init(backendConfig())
I wrote but I don't make sure if I understand good
r

rp

02/12/2023, 1:50 PM
What about this config?
u

γƒ”γƒ§γƒˆγƒ«πŸΊ

02/12/2023, 1:52 PM
Do I need to change to the config for the frontend or do I need to do something else np. delete or add something.
r

rp

02/12/2023, 1:54 PM
im not sure what your setup is. But you should not need to change any config, other than allow sharing of cookies across api doamins as mentioned in our docs here: https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/sessions/multiple-api-endpoints if you are using localhost, then you shouldn't need to do any changes to the config.
u

γƒ”γƒ§γƒˆγƒ«πŸΊ

02/12/2023, 2:00 PM
So if I have the same value in appInfo I don't need change anything and use sharing of cookies across api domains?
r

rp

02/12/2023, 2:00 PM
yea. I think so.. really depends on your setup
try it out
u

γƒ”γƒ§γƒˆγƒ«πŸΊ

02/12/2023, 2:01 PM
I see. Thanks :)