POST/api/v1/me/mfa/totp/disable

Disable TOTP

Disable TOTP-based two-factor authentication. Requires password confirmation for security. Deletes the TOTP secret and all remaining backup codes.

Request

Body Parameters

ParameterTypeRequiredDescription
passwordstringYesUser's current account password

Example Request

curl -X POST https://api.storno.ro/api/v1/me/mfa/totp/disable \
  -H "Authorization: Bearer {token}" \
  -H "Content-Type: application/json" \
  -d '{ "password": "your-password" }'

Response

Success Response (200 OK)

{
  "disabled": true
}

Error Codes

CodeDescription
401Unauthorized — missing or invalid JWT token
422Invalid password