SEG491X-W2023-T42 / mikado-machine

A multi-platform web-app for managing tasks and goals using the Mikado Method.
https://mikadomachine.uottawaesports.ca/
1 stars 0 forks source link

Firebase sends logged in users to homepage for a moment #100

Closed danielzgtg closed 1 year ago

danielzgtg commented 1 year ago

Again, this was discussed in chat. Firebase is async and will take a bit of time to asynchronously load the user. In the meantime, the AuthenticatedUidWrapper should wait. It is currently always detecting signed-in users as logged-out after first load or refresh. It then sends the user to the homescreen, and absent any feature to redirect to the proper page after login, this blocks all future features that depend on the URL being sharable or bookmarkable by the user.

Expected Behavior

The URL does not change after refreshing the page, or when pasting it into a new tab.

Actual Behavior

When a logged-in user refreshes the graph, they are redirected to the homepage and back.

https://user-images.githubusercontent.com/25646384/226789808-0b2fb8ad-3ff8-48bf-9437-7e7dea5abe70.mp4