Package: react-wallet-kit

Overview

Creates a new passkey authenticator for the user.
  • This function generates a new passkey attestation and challenge, suitable for registration with the user’s device.
  • Handles both web and React Native environments, automatically selecting the appropriate passkey creation flow.
  • The resulting attestation and challenge can be used to register the passkey with Turnkey.

Parameters

params
object

Response

A successful response returns the following fields:
returns
object
required
A promise that resolves to an object containing:
  • attestation: attestation object returned from the passkey creation process.
  • encodedChallenge: encoded challenge string used for passkey registration.