uw-datasci / uwdsc-website-v2

Website for UWaterloo's Data Science Club
https://www.uwdatascience.ca
4 stars 1 forks source link

Auto log out after token expiry #58

Open dscwebdev opened 1 month ago

dscwebdev commented 1 month ago

Right now, users are getting confused why they are not able to access their QR code despite being logged in.

This bug happens because their JWT token is still stored in the browser and so our website displays that they are logged in despite having an expired token.

Figure out a way to log the user out when their token has expired. Suggestions : You could force the sign-in route to pass an expiry field which you can compare against on every website render/api query.

Acceptance Criteria: