Polish for Release (#2841)

This commit is contained in:
Joe Milazzo 2024-04-10 16:51:40 -05:00 committed by GitHub
parent a76de06087
commit e6e228c3d9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 46 additions and 36 deletions

View file

@ -147,6 +147,6 @@ public class TokenService : ITokenService
if (string.IsNullOrEmpty(token)) return true;
var tokenHandler = new JwtSecurityTokenHandler();
var tokenContent = tokenHandler.ReadJwtToken(token);
return tokenContent.ValidTo <= DateTime.UtcNow;
return tokenContent.ValidTo >= DateTime.UtcNow;
}
}