GET/api/v1/me/mfa/status

MFA Status

Retrieve the current MFA configuration for the authenticated user, including whether TOTP is enabled, remaining backup codes, and registered passkeys count.

Request

No request body required.

Example Request

curl https://api.storno.ro/api/v1/me/mfa/status \
  -H "Authorization: Bearer {token}"

Response

Success Response (200 OK)

{
  "totpEnabled": true,
  "backupCodesRemaining": 8,
  "passkeysCount": 2
}
FieldTypeDescription
totpEnabledbooleanWhether TOTP-based 2FA is enabled
backupCodesRemainingintegerNumber of unused backup codes remaining
passkeysCountintegerNumber of registered WebAuthn passkeys

Error Codes

CodeDescription
401Unauthorized — missing or invalid JWT token