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" }

本頁目錄