A-Team-Rowan-University / a-team-website

Servers and database to manage the A-Team
https://a-team-rowan-university.github.io/a-team-website/webdev_lib/
4 stars 5 forks source link

Log the user out when the id token expires #53

Open timothyhollabaugh opened 5 years ago

timothyhollabaugh commented 5 years ago

If the user logs in an leaves the page open long enough without doing anything, the Google id token will silently expire. This will cause all requests to the backend to fail. The frontend should detect the token expiring and log the user out, show a session timeout notice, and allow the user to log back in.

timothyhollabaugh commented 5 years ago

Probably best to ask the user to sign in again after a permission denied from the server