Skip to content
docsv0.9.0

PublicKeyCredentialCreationOptions

The registration options a server hands the browser (WebAuthn `navigator.credentials.create`). `toArray()` is the JSON body.

PublicKeyCredentialCreationOptions::__construct()

public function __construct(array $publicKey):

Parameters

Parameters of __construct()
NameTypeDescription
$publicKeyarray<string, mixed>the `publicKey` member the browser consumes

PublicKeyCredentialCreationOptions::toArray()

public function toArray(): array

The JSON body handed to `navigator.credentials.create`.