@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