only log out the user when we return a 401, not raise an error

This commit is contained in:
jasquat 2023-11-15 09:47:20 -05:00
parent 1d37001727
commit 6d99fd0ac3
1 changed files with 0 additions and 1 deletions

View File

@ -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(