Skip to content
Permalink
Browse files

Throw if Token is invalid

  • Loading branch information...
mythz committed Jul 31, 2019
1 parent 620c4b3 commit 7d98dde84a5441c181d5858720c73a7ee48f25aa
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/ServiceStack/Auth/JwtAuthProvider.cs
@@ -395,6 +395,9 @@ public object Any(GetAccessToken request)
throw new ArgumentException(ex.Message);
}

if (jwtPayload == null)
throw new ArgumentException(ErrorMessages.TokenInvalid.Localize(Request));

jwtAuthProvider.AssertJwtPayloadIsValid(jwtPayload);

if (jwtAuthProvider.ValidateRefreshToken != null && !jwtAuthProvider.ValidateRefreshToken(jwtPayload, Request))

0 comments on commit 7d98dde

Please sign in to comment.
You can’t perform that action at this time.