Skip to main content
function getMfaConfig(): Promise<MfaConfig>;
Gets the MFA configuration for the current project. This endpoint returns information about whether MFA is enabled for the project and the configuration for TOTP authentication.

Returns

Promise<MfaConfig> The MFA configuration for the project.

Example

const result = await getMfaConfig();
if (result.enabled) {
  console.log("MFA is enabled for this project");
}