userPasskeyDeleteWithHttpInfo method

Future<Response> userPasskeyDeleteWithHttpInfo(
  1. String userId,
  2. String passkeyIdentificationId
)

Delete a user passkey

Delete the passkey identification for a given user and notify them through email.

Note: This method returns the HTTP Response.

Parameters:

  • String userId (required): The ID of the user that owns the passkey identity

  • String passkeyIdentificationId (required): The ID of the passkey identity to be deleted

Implementation

Future<http.Response> userPasskeyDeleteWithHttpInfo(
  String userId,
  String passkeyIdentificationId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/users/{user_id}/passkeys/{passkey_identification_id}'
      .replaceAll('{user_id}', userId)
      .replaceAll('{passkey_identification_id}', passkeyIdentificationId);

  // 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,
  );
}