pub async fn setup_mfa(
__arg0: State<ApiState>,
headers: HeaderMap,
) -> ApiResponse<MfaSetupResponse>Expand description
POST /mfa/setup — initiate MFA enrollment.
Generates a new TOTP secret and ten backup codes, stores them as pending (TTL 10 min), and returns:
secret– base32-encoded secret for manual entry into an authenticatorqr_code–otpauth://URI that can be converted to a QR codebackup_codes– shown once; user must save these before calling/mfa/verify