GET /mfa/backup-codes/count
返回当前用户备用恢复码的数量和是否为即将用尽的状态。参考:RFC 6238 (TOTP)、OWASP ASVS V2.8.3。
多因素认证 `bearerAuth` application/json
引用的 Schema
service-core/base/dto.SimpleResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
code |
integer |
否 |
|
|
|
message |
string |
否 |
|
|
|
timestamp |
string |
否 |
|
|
|
service-mfa/internal/handler/dto.BackupCodesCountDetailResponse
service-mfa/internal/handler/dto.BackupCodesCountResponse
| 字段 | 类型 | 必填 | 示例 | 约束 | 描述 |
count |
integer |
否 |
8 |
|
|
max_codes |
integer |
否 |
10 |
|
|
message |
string |
否 |
|
|
|
should_regenerate |
boolean |
否 |
False |
|
|