Exemple #1
0
 /// <summary>
 /// Set the expriy date and time by calling static method JWT.GetExpiryDuration(endLife)
 /// </summary>
 /// <param name="endLife"></param>
 public void SetExpiry(DateTime endLife)
 {
     this.ExpiresOn = JWT.GetExpiryDuration(endLife);
 }
Exemple #2
0
 /// <summary>
 /// Check if the token is expired by calling static method JWT.IsTokenExpired(this.ExpiresOn)
 /// </summary>
 /// <returns></returns>
 public bool IsTokenExpired()
 {
     return(JWT.IsTokenExpired(this.ExpiresOn));
 }