deleteSecondFactorWithHttpInfo method

Future<Response> deleteSecondFactorWithHttpInfo(
  1. String account,
  2. String user,
  3. String secondFactor
)

Delete a second factor

Permanently deletes a second factor. It cannot be undone.

Note: This method returns the HTTP Response.

Parameters:

  • String account (required): The identifier (UUID) or slug of your Keygen account.

  • String user (required): The identifier (UUID) or email of a user the second factor belongs to.

  • String secondFactor (required): The identifier (UUID) of the second factor to be deleted.

Implementation

Future<Response> deleteSecondFactorWithHttpInfo(String account, String user, String secondFactor,) async {
  // ignore: prefer_const_declarations
  final path = r'/accounts/{account}/users/{user}/second-factors/{second-factor}'
    .replaceAll('{account}', account)
    .replaceAll('{user}', user)
    .replaceAll('{second-factor}', secondFactor);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];


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