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.
Package: core
Defined in: core.ts:193
Parameters
Response
A successful response returns the following fields: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.