Merge pull request #793 from alphagov/better-expired-error

Give a more helpful error when token has expired
This commit is contained in:
Chris Hill-Scott
2017-01-17 14:48:57 +00:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

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