deleteMfaAuthenticator method
Delete Authenticator
Delete an authenticator for a user by ID.
Implementation
Future<models.User> deleteMfaAuthenticator(
{required enums.AuthenticatorType type, required String otp}) async {
final String apiPath =
'/account/mfa/authenticators/{type}'.replaceAll('{type}', type.value);
final Map<String, dynamic> apiParams = {
'otp': otp,
};
final Map<String, String> apiHeaders = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.delete,
path: apiPath, params: apiParams, headers: apiHeaders);
return models.User.fromMap(res.data);
}