mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-30 06:21:50 -05:00
Merge pull request #793 from alphagov/better-expired-error
Give a more helpful error when token has expired
This commit is contained in:
@@ -94,4 +94,4 @@ def get_decode_errors(auth_token, unsigned_secret):
|
||||
try:
|
||||
decode_jwt_token(auth_token, unsigned_secret)
|
||||
except TokenExpiredError:
|
||||
raise AuthError("Invalid token: expired", 403)
|
||||
raise AuthError("Invalid token: expired, check that your system clock is accurate", 403)
|
||||
|
||||
Reference in New Issue
Block a user