# LoginResponse

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 named type of the API.

## Fields

- `challenge` (string): Challenge valid only for the second step and only from the client IP address used in the first step. It expires after two minutes or five incorrect codes.
- `enrol_second_factor` (boolean): A value of true means this server requires a second factor for administrators and this administrator has yet to enrol one. Until a factor is confirmed, the session can access only the administrator's own identity and second-factor enrolment.
- `expires_at` (string)
- `second_factor` (boolean): A value of true means the password was accepted and a second-factor code is required. Send the code and challenge to POST /auth/login/second-factor.
- `token` (string): Session token, omitted when login requires a second step.
- `user` (User)

## Used by

- [POST /auth/login](https://urbestack.com/docs/api/post-auth-login.md): Exchange a name and password for a session token or a second-factor challenge
- [POST /auth/login/second-factor](https://urbestack.com/docs/api/post-auth-login-second-factor.md): Complete sign-in with an authenticator app code or a recovery code
