Beispiel #1
0
 public bool HasExpired() => DateTime.UtcNow - IssuedAt.ToUniversalTime() >= ExpiresIn;
Beispiel #2
0
 public long ToUnixEpochDate()
 => (long)Math.Round((IssuedAt.ToUniversalTime() -
                      new DateTimeOffset(1970, 1, 1, 0, 0, 0, TimeSpan.Zero)).TotalSeconds);