getMfaFactors

Retrieves the list of MFA factors configured for the current user.

Import

1import { BaseAlchemySigner } from "@account-kit/signer";

Usage

1import { AlchemyWebSigner } from "@account-kit/signer";
2
3const signer = new AlchemyWebSigner({
4 client: {
5 connection: {
6 rpcUrl: "/api/rpc",
7 },
8 iframeConfig: {
9 iframeContainerId: "alchemy-signer-iframe-container",
10 },
11 },
12});
13
14const { multiFactors } = await signer.getMfaFactors();

Returns

Promise<{ multiFactors: Array<MfaFactor> }> A promise that resolves to an array of configured MFA factors