Api Login 2Fa

Second factor verification step.

Called after /api/login returns totp_required=True. The pending_token identifies the half-completed login attempt; code is either a TOTP code or a backup code (if use_backup_code=true).

On success: deletes the pending row, issues a session cookie. On failure: decrements attempts_remaining. If at 0 (or already 0), deletes the row, user must re-enter password.

post/api/login/2fa

Request

  • Base URL: https://sleipnir.tv (the document declares no server; this is the origin it was published from)
  • URL: https://sleipnir.tv/api/login/2fa
  • Auth: none declared

Request body

pending_tokenstring required
codestring required
use_backup_codeboolean

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.