Fix bug with expired token error response

This commit is contained in:
Rebecca Law
2016-07-22 15:10:37 +01:00
parent bdcddfbea3
commit ecd4b76080
2 changed files with 34 additions and 16 deletions

View File

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