PasskeysClient
interface PasskeysClient
Passkey (WebAuthn) authentication methods.
Functions
Link copied to clipboard
Authenticates the user with an existing registered passkey. Performs a two-step flow: calls POST /sdk/v1/webauthn/authenticate/start/primary (no session) or POST /sdk/v1/webauthn/authenticate/start/secondary (with session) to get assertion options, invokes the platform credential API, then calls POST /sdk/v1/webauthn/authenticate to complete.
Link copied to clipboard
Registers a new passkey for the current user. Performs a two-step flow: calls POST /sdk/v1/webauthn/register/start to get creation options, invokes the platform credential API to create the passkey, then calls POST /sdk/v1/webauthn/register to complete registration. Requires an active session.
Link copied to clipboard