Ok. I asked because I have backend in nestjs so in...
# general
w
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
Your backend is in nestjs, but your frontend is served via nextjs. Therefore SSR applies to nextjs.
w
so do I need change backendConfig on frontendConfig?
r
im not sure what you mean.
Everything is explained in our guides. I would suggest that you understand how it works and follow through.
w
I mean supertokensNode.init(backendConfig())
I wrote but I don't make sure if I understand good
r
What about this config?
w
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
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.
w
So if I have the same value in appInfo I don't need change anything and use sharing of cookies across api domains?
r
yea. I think so.. really depends on your setup
try it out
w
I see. Thanks :)
3 Views