Autional Autional
API Reference GitHub autional.com →

GET /mfa/backup-codes/count

Return the count of backup recovery codes for the current user and whether they are nearly exhausted. Reference: RFC 6238 (TOTP), OWASP ASVS V2.8.3.

Multi-Factor Authentication `bearerAuth` application/json

Responses

StatusDescriptionSchema
200Backup code countdto.BackupCodesCountDetailResponse
400Business errorgitee_com_linmes_authms_base_dto.SimpleResponse
401Unauthenticatedgitee_com_linmes_authms_base_dto.SimpleResponse
500Internal server errorgitee_com_linmes_authms_base_dto.SimpleResponse

Referenced Schemas

dto.BackupCodesCountDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.BackupCodesCountResponse No
message string No
timestamp string No

dto.BackupCodesCountResponse

FieldTypeRequiredExampleConstraintsDescription
count integer No 8
max_codes integer No 10
message string No
should_regenerate boolean No False

gitee_com_linmes_authms_base_dto.SimpleResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
message string No
timestamp string No