Skip to content
docsv0.9.0

PublicKeyCredentialRequestOptions

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

PublicKeyCredentialRequestOptions::__construct()

public function __construct(array $publicKey):

Parameters

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

PublicKeyCredentialRequestOptions::toArray()

public function toArray(): array

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