Login
session_token httpOnly cookie used by all dashboard routes.
Request
Parameters
Responses
Behavior
- Sets the
session_tokenhttpOnly cookie (SameSite=Strict, not readable from JavaScript). - Browser clients must send
credentials: "include"on subsequent requests. - Wrong passwords are indistinguishable from unknown users — both answer
401 Invalid credentials. - A recovery code spent during login returns
recoveryCodesLeftin the success response. - When 2FA is enabled and no
twofawas sent, the response carriestwoFactorRequired: truealongside the 401.
Rate Limits & Lockout
The per-identity lockout counts failed sign-ins against both the account identifier and the source address independently. One host spraying many accounts and many hosts hitting one account are both caught.
