Skip to content

removeMfa

Removes existing MFA factors by their IDs.

Import

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

Usage

import { AlchemyWebSigner } from "@account-kit/signer";
 
const signer = new AlchemyWebSigner({
  client: {
    connection: {
      rpcUrl: "/api/rpc",
    },
    iframeConfig: {
      iframeContainerId: "alchemy-signer-iframe-container",
    },
  },
});
 
const result = await signer.removeMfa({
  multiFactorIds: ["factor-id-1", "factor-id-2"],
});

Parameters

params

RemoveMfaParams The parameters specifying which factors to disable

Returns

Promise<{ multiFactors: MfaFactor[] }> A promise that resolves to the updated list of MFA factors