EFB/Models/TokenModel.cs
2022-02-28 21:53:28 +00:00

24 lines
483 B
C#

using System;
namespace EFB.Models
{
public class TokenModel
{
/*
Auto Router API Token Model
*/
public string TokenValue { get; init; }
public DateTime Expiration { get; init; }
public bool IsExpired()
{
//Check if the current time is beyond expiration
if (DateTime.UtcNow > Expiration)
{
return true;
}
return false;
}
}
}