Struct IssuedToken
- Namespace
- Line.OpenApi.ChannelAccessToken
- Assembly
- Line.OpenApi.ChannelAccessToken.dll
An issued token together with its lifetime. Used by RefreshingChannelAccessTokenProvider to compute the cache expiry.
public readonly struct IssuedToken
- Inherited Members
Constructors
IssuedToken(string, TimeSpan)
public IssuedToken(string accessToken, TimeSpan lifetime)
Parameters
Properties
AccessToken
The issued channel access token.
public string AccessToken { get; }
Property Value
Lifetime
The token's validity period (relative to the moment of issuance).
public TimeSpan Lifetime { get; }