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
As we have discussed in #267 about how can we use stitch sdk in isomorphic app like Next.js . Now problem is that when user login first time it is obvious that browser sdk will store user credential at browser local storage.
But after login when, I refresh my page. On server inside getInitialProps() function it shows that user is not logged In. I think that is because App server does not know anything about user and its credential. And credential are at user side in browser local storage.
So my question is how can i handle such scenario?
or other scenario could be when user comes back and access my app. Server will assume user is not logged in and throw user on login page.
The text was updated successfully, but these errors were encountered:
Unfortunately, we do not yet have an SDK that explicitly supports isomorphic apps with frameworks like Next.js or Nuxt.js. This is something we plan on investigating in the near future, but I can't give any more specifics. We'll keep you updated with any new developments, and I'll leave this issue open until we have a solution.
As we have discussed in #267 about how can we use stitch sdk in isomorphic app like Next.js . Now problem is that when user login first time it is obvious that browser sdk will store user credential at browser local storage.
But after login when, I refresh my page. On server inside getInitialProps() function it shows that user is not logged In. I think that is because App server does not know anything about user and its credential. And credential are at user side in browser local storage.
So my question is how can i handle such scenario?
or other scenario could be when user comes back and access my app. Server will assume user is not logged in and throw user on login page.
The text was updated successfully, but these errors were encountered: