Continues #443, the web app lacks a global mechanism for managing user states. When a user opens a static page (About, Privacy Policy, or Terms and Conditions) in a new tab, the app does not manage the user state.
If a user is already logged in, and clicked on the bookmarked login address, the app returns a blank page.
I suggest manager user state/refresh user in the header.tsx.
Steps/Code to Reproduce
Login
Open Privacy Policy/login in a new tab, user state is undefined.
Expected Results
User should stay logged in (User state is managed globally).
Describe the bug
Continues #443, the web app lacks a global mechanism for managing user states. When a user opens a static page (About, Privacy Policy, or Terms and Conditions) in a new tab, the app does not manage the user state.
If a user is already logged in, and clicked on the bookmarked login address, the app returns a blank page.![image](https://github.com/MobilityData/mobility-feed-api/assets/5789435/dd2baad1-a9b9-4b62-a055-906623ca245c)
I suggest manager user state/refresh user in the header.tsx.
Steps/Code to Reproduce
Expected Results
User should stay logged in (User state is managed globally).
Actual Results
User state is undefined.
Screenshots
No response
Files used
No response
Additional notes
No response