Skip to content

Log user off and redirect to login page if the browser thinks it is logged in and authentication fails #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cirosantilli opened this issue Jan 17, 2022 · 0 comments

Comments

@cirosantilli
Copy link
Owner

Currently if e.g. you login on another browser and change password or if the account gets deleted by our account limit, when you try to view any pages you get "failed to load messages".

What we should do instead is for every API request, or GET request that fails authentication, make the browser notice and logoff. Showing a message would be very ideal.

cirosantilli added a commit that referenced this issue Mar 20, 2022
This fixes the /ssr case of #18

To fix that fully we would need to also have a common API request handler
that detects that an API request failed due to authentication and logs the
user off.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant