Type alias PasskeyGetTokenOptions

PasskeyGetTokenOptions: {
    audience?: string;
    authSession: string;
    credential: PublicKeyCredential;
    organization?: string;
    realm?: string;
    scope?: string;
    verification?: {
        email?: string;
        phone?: string;
    };
}

Options for exchanging a signed passkey credential for tokens.

credential is the raw PublicKeyCredential produced by the WebAuthn ceremony — a creation credential (signup) or an assertion credential (login). The credential type (attestation vs assertion) is detected automatically during serialization.

Type declaration

  • Optional audience?: string
  • authSession: string
  • credential: PublicKeyCredential
  • Optional organization?: string
  • Optional realm?: string
  • Optional scope?: string
  • Optional verification?: {
        email?: string;
        phone?: string;
    }

    OTP codes collected for identifier verification. Required when PasskeySignupChallenge.verificationRequired is non-empty. Keys are the identifier names (e.g. "email", "phone"); values are the OTP codes. Omit entirely when no verification is required.

    • Optional email?: string
    • Optional phone?: string