Skip to content

JwtToken

Namespace: Rest_API.Models

Represents a JWT token and its associated refresh token and metadata.

public class JwtToken

Inheritance Object → JwtToken

Properties

CreatedDate

Gets or sets the creation date and time of the JWT token.

public DateTime CreatedDate { get; set; }

Property Value

DateTime

ExpiryDate

Gets or sets the expiry date and time of the JWT token.

public DateTime ExpiryDate { get; set; }

Property Value

DateTime

RefreshToken

Gets or sets the refresh token string.

public string RefreshToken { get; set; }

Property Value

String

Roles

Gets or sets the user roles associated with the JWT token.

public IList<String> Roles { get; set; }

Property Value

IList<String>

Token

Gets or sets the JWT access token string.

public string Token { get; set; }

Property Value

String

Constructors

JwtToken()

Caution

Constructors of types with required members are not supported in this version of your compiler.


public JwtToken()