Class GraphQlTokenSet
An OAuth token set issued by the microtech ERP authorization server. Immutable so token updates can be observed and persisted atomically.
public sealed record GraphQlTokenSet : IEquatable<GraphQlTokenSet>
- Inheritance
-
objectGraphQlTokenSet
- Implements
Constructors
GraphQlTokenSet(string, DateTimeOffset, string?, DateTimeOffset?)
An OAuth token set issued by the microtech ERP authorization server. Immutable so token updates can be observed and persisted atomically.
public GraphQlTokenSet(string AccessToken, DateTimeOffset ExpiresAtUtc, string? RefreshToken, DateTimeOffset? RefreshTokenExpiresAtUtc = null)
Parameters
AccessTokenstringThe bearer access token (typically valid for about one hour).
ExpiresAtUtcDateTimeOffsetThe UTC time at which the access token expires.
RefreshTokenstringThe refresh token (typically valid for about 30 days), if the server issued one.
RefreshTokenExpiresAtUtcDateTimeOffset?The UTC time at which the refresh token expires, if the server reported one (non-standard
refresh_expires_infield). Rotated refresh tokens get the full configured lifetime again (sliding TTL).
Properties
AccessToken
The bearer access token (typically valid for about one hour).
public string AccessToken { get; init; }
Property Value
ExpiresAtUtc
The UTC time at which the access token expires.
public DateTimeOffset ExpiresAtUtc { get; init; }
Property Value
RefreshToken
The refresh token (typically valid for about 30 days), if the server issued one.
public string? RefreshToken { get; init; }
Property Value
RefreshTokenExpiresAtUtc
The UTC time at which the refresh token expires, if the server
reported one (non-standard refresh_expires_in field). Rotated refresh tokens get the full
configured lifetime again (sliding TTL).
public DateTimeOffset? RefreshTokenExpiresAtUtc { get; init; }