Type alias PasskeySignupChallenge

PasskeySignupChallenge: {
    authSession: string;
    publicKey: PublicKeyCredentialCreationOptions;
    verificationRequired?: ("email" | "phone")[];
}

A passkey signup challenge ready for the WebAuthn ceremony.

publicKey is decoded (base64url → ArrayBuffer) and can be fed directly into a WebAuthn credential creation ceremony. authSession must be retained and passed to getTokenWithPasskey().

Type declaration

  • authSession: string
  • publicKey: PublicKeyCredentialCreationOptions
  • Optional verificationRequired?: ("email" | "phone")[]

    Identifiers that require OTP verification before token issuance (e.g. ["email"]). Absent when no verification is required. Collect OTP codes for each identifier and pass them as verification to getTokenWithPasskey() — do NOT call navigator.credentials.create() until all codes have been collected.