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}"
const response = await fetch('https://api.storno.ro/api/v1/me/mfa/status', {
headers: { 'Authorization': `Bearer ${token}` },
});
const status = await response.json();
Response
Success Response (200 OK)
{
"totpEnabled": true,
"backupCodesRemaining": 8,
"passkeysCount": 2
}
| Field | Type | Description |
|---|---|---|
totpEnabled | boolean | Whether TOTP-based 2FA is enabled |
backupCodesRemaining | integer | Number of unused backup codes remaining |
passkeysCount | integer | Number of registered WebAuthn passkeys |
Error Codes
| Code | Description |
|---|---|
401 | Unauthorized — missing or invalid JWT token |