Table of Contents

Class CreateTokenRequest

Namespace
Nexus.Api.V1
Assembly
Nexus.Api.dll

A request to create a personal access token.

public record CreateTokenRequest : IEquatable<CreateTokenRequest>
Inheritance
CreateTokenRequest
Implements
Inherited Members

Constructors

CreateTokenRequest(string, DateTime, IReadOnlyList<TokenClaim>)

A request to create a personal access token.

public CreateTokenRequest(string Description, DateTime Expires, IReadOnlyList<TokenClaim> Claims)

Parameters

Description string

The token description.

Expires DateTime

The date/time when the token expires.

Claims IReadOnlyList<TokenClaim>

The claims that will be part of the token.

Properties

Claims

The claims that will be part of the token.

public IReadOnlyList<TokenClaim> Claims { get; init; }

Property Value

IReadOnlyList<TokenClaim>

Description

The token description.

public string Description { get; init; }

Property Value

string

Expires

The date/time when the token expires.

public DateTime Expires { get; init; }

Property Value

DateTime