Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Commit

Permalink
Update TokenBase.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
aspriddell authored Mar 26, 2021
1 parent 3c715c6 commit d413208
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion DragonFruit.Six.Api/Tokens/TokenBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public abstract class TokenBase
public abstract DateTimeOffset Expiry { get; set; }

[JsonIgnore]
public bool Expired => InternalExpiry >= DateTimeOffset.Now;
public bool Expired => InternalExpiry <= DateTimeOffset.Now;

[JsonIgnore]
private DateTimeOffset InternalExpiry => _safeExpiry ??= Expiry.AddMinutes(-5);
Expand Down

0 comments on commit d413208

Please sign in to comment.