Table of Contents

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

accessToken string
lifetime TimeSpan

Properties

AccessToken

The issued channel access token.

public string AccessToken { get; }

Property Value

string

Lifetime

The token's validity period (relative to the moment of issuance).

public TimeSpan Lifetime { get; }

Property Value

TimeSpan