Import
Login-time MFA
method === "totp" before reading uri, an otpauth URI for an authenticator app. Show backupCodes exactly once at enrollment.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Input and result shapes for login-time MFA, faucet, and settled-session operations.
import type { VerifyMfaParams, EnrollMfaParams, TwoFactorEnrollResponse, VerifyMfaResult, RequestFaucetParams } from "@getpara/web-sdk";
type VerifyMfaParams = { code: string };
type EnrollMfaParams = { method?: "totp" };
type TwoFactorEnrollResponse =
| { method: "totp"; uri: string; backupCodes: string[] }
| { method: "passkey"; challenge: string }
| { method: "passkey" | "password" | "pin"; ok: true; factorId: string };
type VerifyMfaResult = { ok: true } | { ok: false; attemptsRemaining?: number };
method === "totp" before reading uri, an otpauth URI for an authenticator app. Show backupCodes exactly once at enrollment.
interface RequestFaucetParams { walletId: string; chain?: string; }
interface RequestFaucetResponse {
transactionHash: string; amount: string; chain: string; walletId: string; address: string;
}
type WaitAndExportSessionParams = { excludeSigners?: boolean };
type WaitAndExportSessionResponse = string;