mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-02-05 14:44:12 +00:00
only log out the user when we return a 401, not raise an error
This commit is contained in:
parent
1d37001727
commit
6d99fd0ac3
@ -230,7 +230,6 @@ class AuthenticationService:
|
||||
valid = False
|
||||
|
||||
if valid and now > decoded_token["exp"]:
|
||||
AuthenticationService.set_user_has_logged_out()
|
||||
raise TokenExpiredError("Your token is expired. Please Login")
|
||||
elif not valid:
|
||||
current_app.logger.error(
|
||||
|
Loading…
x
Reference in New Issue
Block a user