deleteSecondFactor method

Future<void> deleteSecondFactor(
  1. String account,
  2. String user,
  3. String secondFactor
)

Delete a second factor

Permanently deletes a second factor. It cannot be undone.

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<void> deleteSecondFactor(String account, String user, String secondFactor,) async {
  final response = await deleteSecondFactorWithHttpInfo(account, user, secondFactor,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}