https://supertokens.com/ logo
server side rendering
r

rezaamya

05/21/2023, 8:47 AM
Hello, is there any way to have an app to stand between SuperTokens and the client? I have a NextJs server, to have Server Side Rendering when a client is requesting to NextJs, I need to handle his cookies and to do that, I should get cookie of user and send it to SuperTokens and return it back to client. so the NextJs app need to stand between client and SuperTokens
r

rp

05/21/2023, 2:36 PM
hey @rezaamya you can enable cookie sharing on your domains and then the nextjs app will get the cookie. See https://supertokens.com/docs/session/common-customizations/sessions/ssr
r

rezaamya

05/22/2023, 7:03 AM
Thanks so much for your reply I will check it thanks again