rp_st
02/01/2022, 12:45 PMgetSession
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.