From fded706989548a6f80aa7605ce70b7d20e49edb7 Mon Sep 17 00:00:00 2001 From: 杨宇千 Date: Thu, 1 Aug 2019 21:22:55 +0800 Subject: Expired token now has a unique code. --- Timeline/Authenticate/AuthHandler.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Timeline/Authenticate/AuthHandler.cs') diff --git a/Timeline/Authenticate/AuthHandler.cs b/Timeline/Authenticate/AuthHandler.cs index 75d3b49f..41cb11c6 100644 --- a/Timeline/Authenticate/AuthHandler.cs +++ b/Timeline/Authenticate/AuthHandler.cs @@ -87,6 +87,10 @@ namespace Timeline.Authenticate return AuthenticateResult.Success(new AuthenticationTicket(principal, AuthConstants.Scheme)); } + catch (ArgumentException) + { + throw; // this exception usually means server error. + } catch (Exception e) { _logger.LogInformation(e, "A jwt token validation failed."); -- cgit v1.2.3