Skip to main content
function getEnabledMfaMethods(): MfaMethod[];
Gets the list of MFA methods enabled in the project configuration.

Returns

MfaMethod[] An array of enabled MFA methods.

Example

const config = getMfaConfigState();
if (config) {
  const methods = getEnabledMfaMethods(config);
  // methods = ['totp', 'sms']
}