UoaWDCC / uasc-web

Project with the University of Auckland Snowsports Club Website & Booking System. Established in 2023.
https://uasc.co.nz
6 stars 2 forks source link

[FRONTEND] Load current user from localstorage if exists #500

Closed bcho892 closed 4 months ago

bcho892 commented 4 months ago

Is your feature request related to a problem? Please describe.

Right now we wait for authentication on the firebase side which is OK but that means that there is a noticable delay when the page is refreshed. A solution would be to keep the user token and details in local storage and load them when firebase first starts up

BEFORE MERGING

bcho892 commented 4 months ago

This one doesn't actually work too well, needs more investigation into the best way to do this

bcho892 commented 4 months ago

Probably not worth effort at this point