Package: react-wallet-kit

Overview

Signs up a user using a passkey, creating a new sub-organization and session.
  • This function creates a new passkey authenticator and uses it to register a new sub-organization for the user.
  • Handles both passkey creation and sub-organization creation in a single flow.
  • Optionally accepts additional sub-organization parameters, a custom session key, a custom passkey display name, and a custom session expiration.
  • Automatically generates a new API key pair for authentication and session management.
  • Stores the resulting session token and manages cleanup of unused key pairs.

Parameters

params
object

Response

A successful response returns the following fields:
returns
PasskeyAuthResult
required
A promise that resolves to a PasskeyAuthResult, which includes:
  • sessionToken: the signed JWT session token.
  • credentialId: the credential ID associated with the passkey created.