Table of Contents

Class GraphQlTokenSet

Namespace
BpNexT.NET.GraphQL.Client.OAuth
Assembly
BpNexT.NET.GraphQL.dll

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
object
GraphQlTokenSet
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

AccessToken string

The bearer access token (typically valid for about one hour).

ExpiresAtUtc DateTimeOffset

The UTC time at which the access token expires.

RefreshToken string

The refresh token (typically valid for about 30 days), if the server issued one.

RefreshTokenExpiresAtUtc DateTimeOffset?

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).

Properties

AccessToken

The bearer access token (typically valid for about one hour).

public string AccessToken { get; init; }

Property Value

string

ExpiresAtUtc

The UTC time at which the access token expires.

public DateTimeOffset ExpiresAtUtc { get; init; }

Property Value

DateTimeOffset

RefreshToken

The refresh token (typically valid for about 30 days), if the server issued one.

public string? RefreshToken { get; init; }

Property Value

string

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; }

Property Value

DateTimeOffset?