<PackageReference Include="System.ClientModel" Version="1.5.1" />

AuthenticationToken

public class AuthenticationToken
Represents an OAuth token and its metadata.
public DateTimeOffset? ExpiresOn { get; }

Gets the time when the provided token expires.

public DateTimeOffset? RefreshOn { get; }

Gets the time when the token should be refreshed.

public string TokenType { get; }

Gets the type of the token.

public string TokenValue { get; }

Get the token value.

public AuthenticationToken(string tokenValue, string tokenType, DateTimeOffset expiresOn, DateTimeOffset? refreshOn = default)

Initializes a new instance of the AuthenticationToken class.