Skip to content
docsv0.9.0

WebAuthnRegistrationResponse

What the browser returns after `navigator.credentials.create()` — raw byte-exact carriers, unverified. The {@see \Milpa\Auth\WebAuthn\Contracts\WebAuthnVerifier} consumes this to produce a {@see WebAuthnCredentialRecord}. None of these fields are secret.

WebAuthnRegistrationResponse::__construct()

public function __construct(string $credentialId, string $clientDataJSON, string $attestationObject, array $transports):

Parameters

Parameters of __construct()
NameTypeDescription
$credentialIdstring
$clientDataJSONstring
$attestationObjectstring
$transportslist<string>the authenticator transports the browser reported