You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User data of mine is quite modified, so initially, session object looks like this when I first get into login page
{
user : {"provider":"line","name":"遊佐","role":"user","emailVerified":null,"characters":[],"id":"SMskZlPFIckDQrbqaomy"}
expires : "2022-09-20T09:54:36.013Z"
role : "user"}
and when I switch to another tab, and come back to login page, session object changes like this, without getServerSideProps function calling
{
user : {"name":"遊佐"}
expires : "2022-09-20T09:54:36.013Z"
role : "user"}
user object's childs are gone except for name property,
Why does this happen? And can I get some solution for this to sustain origin(first page went in) data?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently using unstable_getServerSession for session validation on page with SSR.
current code
User data of mine is quite modified, so initially, session object looks like this when I first get into
login
pageand when I switch to another tab, and come back to
login
page, session object changes like this, without getServerSideProps function callinguser object's childs are gone except for
name
property,Why does this happen? And can I get some solution for this to sustain origin(first page went in) data?
Beta Was this translation helpful? Give feedback.
All reactions