Skip to content

@stellar-passkey/core API


@stellar-passkey/core API / parseClientDataJSON

Function: parseClientDataJSON()

parseClientDataJSON(bytes, opts): ParsedClientData

Defined in: packages/core/src/webauthn/clientDataJSON.ts:45

Parse a clientDataJSON byte array, asserting type and origin.

Throws KitError with code "CHALLENGE_MISMATCH" (envelope shape / type / challenge problems) or "ORIGIN_MISMATCH" (origin allow-list miss).

Parameters

bytes

Uint8Array

opts

ParseClientDataOptions

Returns

ParsedClientData

MIT — SCF-43 RFP submission (2026). Status: pre-1.0.