Class CreateTokenRequest
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
DescriptionstringThe token description.
ExpiresDateTimeThe date/time when the token expires.
ClaimsIReadOnlyList<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
Description
The token description.
public string Description { get; init; }
Property Value
Expires
The date/time when the token expires.
public DateTime Expires { get; init; }