aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Timeline/Authentication/AuthHandler.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Authentication/AuthHandler.cs b/Timeline/Authentication/AuthHandler.cs
index 47ed1d71..602a44db 100644
--- a/Timeline/Authentication/AuthHandler.cs
+++ b/Timeline/Authentication/AuthHandler.cs
@@ -88,7 +88,7 @@ namespace Timeline.Authentication
return AuthenticateResult.Success(new AuthenticationTicket(principal, AuthConstants.Scheme));
}
- catch (Exception e) when (e! is ArgumentException)
+ catch (Exception e) when (!(e is ArgumentException))
{
_logger.LogInformation(e, Resources.Authentication.AuthHandler.LogTokenValidationFail);
return AuthenticateResult.Fail(e);