icebreaker-science / frontend

The frontend (Angular) part of the icebreaker.science application
Apache License 2.0
1 stars 0 forks source link

logout on unauthorized response #95

Closed michael-kamel closed 3 years ago

michael-kamel commented 3 years ago

Fixes #92

This will simply return the user to the login page and display a message once he gets an unauthorized response regardless of context.

The drawback here is that if there is a minor bug and the user gets an unauthorized response, he/she can be logged out even if the token is still valid.

I suggest we use http 440 for this. both on the backend for notification and the frontend for case distinction.