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:
- Import the required types and functions from the SDK
import {Embedded} from '@beyondidentity/bi-sdk-js';
- Initialize the SDK
const embedded = await Embedded.initialize();
Parameters​
Parameter | Type | Description |
---|---|---|
id | string | Required. 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);