[React] Preserve auth data between sessions? #141
-
It looks like the browser Currently with client-side routing, the auth info works fine, but once I refresh the page, the state's gone. How do we preserve |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Hail, @zfei 👋 Welcome to Fief's kingdom! Our team will get back to you very soon to help. In the meantime, take a minute to star our repository ⭐️ Farewell! |
Beta Was this translation helpful? Give feedback.
-
Hello @zfei 👋 That's indeed a limitation of our React implementation, and maybe we should revisit this to store it also in storage. I'll add this to the backlog. That said, when accessing a private page, the user shall be redirected to Fief's login page and, as we store a session on our side, they should be automatically redirected to your app again. So, this should be quite fast and transparent for them. |
Beta Was this translation helpful? Give feedback.
-
This shall be solved in the latest version of the JS SDK: https://github.com/fief-dev/fief-js/releases/tag/v0.12.1 |
Beta Was this translation helpful? Give feedback.
This shall be solved in the latest version of the JS SDK: https://github.com/fief-dev/fief-js/releases/tag/v0.12.1