Table of Contents

Class LoginResponseDto

Namespace
KadicAuth.Application.Auth.DTOs
Assembly
KadicAuth.Application.dll

Response returned by a successful login.

public sealed record LoginResponseDto
Inheritance
object
LoginResponseDto

Constructors

LoginResponseDto(string, string, int, string?, bool, string?)

Response returned by a successful login.

public LoginResponseDto(string AccessToken, string TokenType, int ExpiresIn, string? RefreshToken = null, bool PasswordExpired = false, string? PasswordExpiresAt = null)

Parameters

AccessToken string

JWT access token.

TokenType string

Always "Bearer".

ExpiresIn int

Seconds until the access token expires.

RefreshToken string

Opaque refresh token for silent renewal.

PasswordExpired bool

GAP-14: true when the user must change their password before performing any other action (driven by PasswordExpiresAt being in the past, or the MustChangePassword flag).

PasswordExpiresAt string

GAP-14: ISO-8601 expiry date when the password will expire within the warning window, null otherwise. Lets the frontend display a countdown without blocking the user yet.

Properties

AccessToken

JWT access token.

public string AccessToken { get; init; }

Property Value

string

ExpiresIn

Seconds until the access token expires.

public int ExpiresIn { get; init; }

Property Value

int

PasswordExpired

GAP-14: true when the user must change their password before performing any other action (driven by PasswordExpiresAt being in the past, or the MustChangePassword flag).

public bool PasswordExpired { get; init; }

Property Value

bool

PasswordExpiresAt

GAP-14: ISO-8601 expiry date when the password will expire within the warning window, null otherwise. Lets the frontend display a countdown without blocking the user yet.

public string? PasswordExpiresAt { get; init; }

Property Value

string

RefreshToken

Opaque refresh token for silent renewal.

public string? RefreshToken { get; init; }

Property Value

string

TokenType

Always "Bearer".

public string TokenType { get; init; }

Property Value

string