toggleMfa method

Future<void> toggleMfa({
  1. String? reason,
})

Toggle the member's MFA.

await member.toggleMfa(reason: 'Testing');

Implementation

Future<void> toggleMfa({String? reason}) =>
    mfaEnabled ? disableMfa(reason: reason) : enableMfa(reason: reason);