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…
Reference in New Issue