mirror of
https://github.com/GSA/notifications-api.git
synced 2025-12-17 02:32:32 -05:00
Fix bug with expired token error response
This commit is contained in:
@@ -66,4 +66,4 @@ def get_decode_errors(auth_token, unsigned_secret):
|
||||
try:
|
||||
decode_jwt_token(auth_token, unsigned_secret)
|
||||
except TokenExpiredError as e:
|
||||
raise AuthError("Invalid token: expired")
|
||||
raise AuthError("Invalid token: expired", 403)
|
||||
|
||||
Reference in New Issue
Block a user