Skip to main content
Version: v1

deletePasskey

The deletePasskey function enables your app to delete a passkey given its passkey ID.

Dependencies​

The deletePasskey function requires the Beyond Identity Javascript SDK.

npm install @beyondidentity/bi-sdk-js

Prerequisites​

Before making a call to deletePasskey, you must complete the following prerequisite calls:

  1. Import the required types and functions from the SDK
import {Embedded} from '@beyondidentity/bi-sdk-js';
  1. Initialize the SDK
const embedded = await Embedded.initialize();

Parameters​

ParameterTypeDescription
idstringRequired. The ID of the passkey to be deleted. This should match the id property of a Passkey that is available on the device.

Examples​

Example: Delete a passkey​

await embedded.deletePasskey(passkey.id);