Table of Contents

Class TokenResponse

Namespace
NuvTools.Security.Identity.Models.Api
Assembly
NuvTools.Security.Identity.Models.dll

Represents the response containing authentication tokens returned after successful login.

public class TokenResponse
Inheritance
TokenResponse
Inherited Members

Remarks

This response typically includes a JWT access token, a refresh token, and the expiry time for the refresh token. It is commonly used in API authentication scenarios.

Properties

RefreshToken

Gets or sets the refresh token.

public string? RefreshToken { get; set; }

Property Value

string

Remarks

This token is used to obtain a new access token when the current one expires. Refresh tokens typically have a longer lifespan than access tokens and should be stored securely.

RefreshTokenExpiryTime

Gets or sets the expiry date and time for the refresh token.

public DateTime? RefreshTokenExpiryTime { get; set; }

Property Value

DateTime?

Remarks

After this time, the refresh token is no longer valid and the user must re-authenticate.

Token

Gets or sets the JWT access token.

public string? Token { get; set; }

Property Value

string

Remarks

This token is used to authenticate API requests and typically has a short lifespan. It should be included in the Authorization header as a Bearer token for authenticated requests.