/// <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); }
/// <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)); }