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:
[ ] User is automatically logged out when their token is expired.
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: