Table of Contents

Class LoginResponse

Namespace
adas_core.Domain.Models.Responses
Assembly
adas-core.Domain.dll

Represents the response data returned from a login operation.

public class LoginResponse
Inheritance
LoginResponse
Inherited Members
Extension Methods

Properties

Expiration

public DateTime Expiration { get; set; }

Property Value

DateTime

RefreshToken

public string RefreshToken { get; set; }

Property Value

string

Token

public string Token { get; set; }

Property Value

string

Methods

IsExpired()

Determines whether the item has expired by comparing its Expiration value to the current UTC time. Returns true when the expiration date has passed, or when no expiration date has been set (i.e., MinValue), treating unset expirations as expired.

public bool IsExpired()

Returns

bool

true if the item is expired or has no expiration date set; otherwise, false.