listMfaFactors method

Future<MfaFactors> listMfaFactors()

List Factors

List the factors available on the account to be used as a MFA challange.

Implementation

Future<models.MfaFactors> listMfaFactors() async {
  final String apiPath = '/account/mfa/factors';

  final Map<String, dynamic> apiParams = {};

  final Map<String, String> apiHeaders = {
    'content-type': 'application/json',
  };

  final res = await client.call(HttpMethod.get,
      path: apiPath, params: apiParams, headers: apiHeaders);

  return models.MfaFactors.fromMap(res.data);
}