keepid / keepid_client

Keep.id Client application built with TypeScript and React.js
Apache License 2.0
8 stars 4 forks source link

Redirect user on refresh to home page if they have logged out in another window/tab #429

Closed ocao29 closed 2 years ago

ocao29 commented 2 years ago

Link to Issue

Description of changes

If the authenticate fails, log out the user. In the app router, if the user is logged out and inside the application, redirect them to the home page. This would happen if you logged into Keep.id on more than one tab or window and logged out of one of them. You would be logged out in all of your Keep.id tabs/windows so that if you refreshed, you would be redirected to the home page.

Screenshot(s) or GIF(s) of changes