Polish for Release (#2841)
This commit is contained in:
parent
a76de06087
commit
e6e228c3d9
15 changed files with 46 additions and 36 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue