Table of Contents

Class AccessToken

Namespace
OpenShell
Assembly
OpenShell.Sdk.dll

A token with an optional absolute expiry.

public sealed record AccessToken : IEquatable<AccessToken>
Inheritance
AccessToken
Implements
Inherited Members

Constructors

AccessToken(string, DateTimeOffset?)

A token with an optional absolute expiry.

public AccessToken(string Value, DateTimeOffset? ExpiresAt = null)

Parameters

Value string

The bearer token.

ExpiresAt DateTimeOffset?

When the token expires; null when unknown or it does not expire.

Properties

ExpiresAt

When the token expires; null when unknown or it does not expire.

public DateTimeOffset? ExpiresAt { get; init; }

Property Value

DateTimeOffset?

Value

The bearer token.

public string Value { get; init; }

Property Value

string