checkUserMfaWithHttpInfo method

Future<Response> checkUserMfaWithHttpInfo(
  1. MmCheckUserMfaRequest mmCheckUserMfaRequest
)

Check MFA

Check if a user has multi-factor authentication active on their account by providing a login id. Used to check whether an MFA code needs to be provided when logging in. ##### Permissions No permission required.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> checkUserMfaWithHttpInfo(
  MmCheckUserMfaRequest mmCheckUserMfaRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/mfa';

  // ignore: prefer_final_locals
  Object? postBody = mmCheckUserMfaRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}