Overview
Adds a new passkey authenticator for the user.- This function prompts the user to create a new passkey (WebAuthn/FIDO2) and adds it as an authenticator for the user.
- Handles both web and React Native environments, automatically selecting the appropriate passkey creation flow.
- If a userId is provided, the passkey is added for that specific user; otherwise, it uses the current session’s userId.
- The passkey’s name and display name can be customized; if not provided, defaults are generated.
- The resulting passkey attestation and challenge are registered with Turnkey as a new authenticator.
Package: core
Defined in: core.ts:3141
Parameters
Response
A successful response returns the following fields:A promise that resolves to an array of authenticator IDs for the newly added passkey(s).