Skip to main content

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: clients/core.ts:233

Parameters

params
CreatePasskeyParams
required

Response

A successful response returns the following fields:
returns
CreatePasskeyResult
required
A promise that resolves to CreatePasskeyResult
I