RyanRussell00 / personal-dj

Personal DJ site that creates playlists given custom inputs. View it live at: http://personaldj.net/
http://personaldj.net/
MIT License
26 stars 12 forks source link

Reroute to login page when user authentication times out #11

Closed RyanRussell00 closed 3 years ago

RyanRussell00 commented 3 years ago

If someone logs in and they exit the tab/browser and come back later, their auth token is expired and all requests will fail. When the tab loads we need to check if their auth token is expired, and if so, redirect to login.