You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

19 lines
577 B

using System;
namespace Win_in.Sfs.Wms.DataExchange.Fawtyg.EosAgent.Authenticaitons;
public class BaererToken
{
public string access_token { get; set; }
public long expires_in { get; set; } = 3600;
public string token_type { get; set; }
public string refresh_token { get; set; }
public string scope { get; set; }
}
public class TokenInfo
{
public BaererToken BaererToken { get; set; } = new();
public DateTimeOffset GetTime { get; set; } = DateTimeOffset.Now;
public DateTimeOffset ExpireTime => GetTime.AddSeconds(BaererToken.expires_in);
}