Table of Contents

Class UserToken

Namespace
Fdyay.AccessTokenManagement.OpenIdConnect
Assembly
Fdyay.AccessTokenManagement.OpenIdConnect.dll

The signed-in user's access token, and when it stops being usable.

public sealed class UserToken
Inheritance
UserToken
Inherited Members

Remarks

The refresh token and the identity token are deliberately not on it. They stay in the session and inside this library: the caller's job is to present an access token, and a refresh token that reaches application code is one that can reach a log.

Properties

AccessToken

The access token to present to the API.

public required string AccessToken { get; init; }

Property Value

string

ExpiresAt

When the access token expires; MaxValue when the session never said.

public DateTimeOffset ExpiresAt { get; init; }

Property Value

DateTimeOffset

TokenType

The token's type, the Authorization header's scheme; Bearer when none was recorded.

public required string TokenType { get; init; }

Property Value

string