rp
04/07/2023, 9:34 PMcookieDomain
property in the SuperTokens initialization object to the parent domain that both the site and the API share. This will allow the cookies to be shared across both domains. Additionally, you can use the getSession
function in Next JS to get the user session on the server side and use it to fetch user data and render the page.