Skip to content
docsv0.9.0

WebAuthnAuthenticationResponse

What the browser returns after `navigator.credentials.get()` — raw byte-exact carriers, unverified. The assertion `signature` is the secret the ceremony proves knowledge of, so it follows the secret-bearing contract: private, redacted in dumps, non-serializable, non-clonable, one `signature()` exit. `clientDataJSON`/`authenticatorData`/`credentialId` are not secret and stay public byte-exact.

WebAuthnAuthenticationResponse::__construct()

public function __construct(string $credentialId, string $clientDataJSON, string $authenticatorData, string $signature, ?string $userHandle):

Parameters

Parameters of __construct()
NameTypeDescription
$credentialIdstring
$clientDataJSONstring
$authenticatorDatastring
$signaturestring
$userHandle?string

WebAuthnAuthenticationResponse::signature()

public function signature(): string

The raw assertion signature bytes — the one deliberate read, for the verifier.

WebAuthnAuthenticationResponse::__debugInfo()

public function __debugInfo(): array

Returns

redacted

WebAuthnAuthenticationResponse::__serialize()

public function __serialize(): array

WebAuthnAuthenticationResponse::__clone()

public function __clone(): void