So in that case, there are two options: 1) You nee...
# support-questions-legacy
r
So in that case, there are two options: 1) You need to use
getSession
in
getServerSideProps
as per our docs, which would cause refreshing etc.. 2) On the frontend, post sign up / in, you can get the access token payload via
Session.getAccessTokenPayloadSecurely()
function, and then save that in cookies and that will be sent to nextjs. But this has several security + syncing issue. So i would recommend going with method (1). To do that though, you would need to set
cookieDomain
on the backend as shown in the link you had posted earlier.