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
ValuestringThe bearer token.
ExpiresAtDateTimeOffset?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
Value
The bearer token.
public string Value { get; init; }