Skip to main content

Recommended: JavaScript SDK with React Hooks

For new React apps, we recommend the JavaScript SDK with React Hooks (@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.

Summary

This hook provides a way for developers to delete a passkey for an authenticated user. The hook needs to be initialized within a child of DynamicContextProvider.
If passkey MFA is enabled, the user will need to authenticate with MFA before deleting a passkey.

Usage

Available methods:
  • deletePasskey: Delete a passkey for the authenticated user.

Usage

Example with MFA

See action-based MFA for more information on completing the MFA flow. This example uses the usePromptMfaAuth hook to prompt the user to authenticate with MFA via the Dynamic UI.
Last modified on June 25, 2026