Class AuthResponse
- Namespace
- Builvero.Application.DTOs.Auth
- Assembly
- Builvero.Application.dll
Response model returned after successful authentication (signup or login).
public class AuthResponse
- Inheritance
-
AuthResponse
- Inherited Members
Remarks
This DTO is used by both email/password and OAuth authentication flows. The token is a JWT that should be included in subsequent API requests via the Authorization header.
Properties
RequiresEmailVerification
Gets or sets a value indicating whether the user must verify their email before gaining full access.
public bool RequiresEmailVerification { get; set; }
Property Value
- bool
- Response model returned after successful authentication (signup or login).
RequiresProfileCompletion
Gets or sets a value indicating whether the user needs to complete their profile setup.
public bool RequiresProfileCompletion { get; set; }
Property Value
- bool
- Response model returned after successful authentication (signup or login).
Remarks
If true, the frontend should redirect the user to the profile setup page. This flag is based on the IsProfileComplete property.
Token
Gets or sets the JWT (JSON Web Token) for authenticated API requests.
public string Token { get; set; }
Property Value
- string
- Response model returned after successful authentication (signup or login).
Remarks
This token should be included in the Authorization header as: Bearer {token}
The token expires 24 hours after generation.
User
Gets or sets the authenticated user's information.
public UserDto User { get; set; }
Property Value
- UserDto
- Response model returned after successful authentication (signup or login).