lemmur icon indicating copy to clipboard operation
lemmur copied to clipboard

Detect invalid auth

Open shilangyu opened this issue 2 years ago • 1 comments

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 avatar Oct 03 '21 11:10 shilangyu

On the front end, we handle this like:

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

dessalines avatar Oct 03 '21 14:10 dessalines