Skip to content
This repository has been archived by the owner on Feb 4, 2023. It is now read-only.

Detect invalid auth #265

Open
shilangyu opened this issue Oct 3, 2021 · 1 comment
Open

Detect invalid auth #265

shilangyu opened this issue Oct 3, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@shilangyu
Copy link
Collaborator

Invalid auth tokens will in many cases cause infinite spinners. Since invalid authentication always means invalid tokens, it is safe to log the user out or mark the account as needed for re-login.

@shilangyu shilangyu added the enhancement New feature or request label Oct 3, 2021
@dessalines
Copy link

On the front end, we handle this like:

    if (msg.error) {
      if (msg.error == "not_logged_in") {
        UserService.Instance.logout();
        location.reload();
      }

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants