MINARA

TOTP 状态

GET /v1/security/totp/status:返回经 Minara `normalizeTotpStatus` 适配器投影的 `/auth/me`。

GET /v1/security/totp/status

返回经 Minara normalizeTotpStatus 适配器投影的 /auth/metotp_enabled 决定提现需要哪种第二因子。withdraw_enabled 是账户保存的偏好,上游的提现守卫并不读取它。new_device_enabled 控制首次登录时的 TOTP。has_secret 表示验证器是否仍处于绑定状态:关闭两步验证会保留密钥,所以 totp_enabled: false 配合 has_secret: true 意味着可以用同一个验证器重新开启;解绑则会同时清除两者。当 schema_source === "indeterminate" 时,调用方不得据此推断任何结论:这些值是兜底默认,而非真实读数。

方法GET
路径/v1/security/totp/status
认证设置 GATEWAY_AUTH_TOKEN 时需要 Authorization: Bearer <token>
类别auth

响应体

{ "totp_enabled": true, "withdraw_enabled": true, "new_device_enabled": false, "has_secret": true, "schema_source": "known" }

本页目录