Skip to content

Commit

Permalink
Missing Optional PublicKeyCredentialParameters for creation options
Browse files Browse the repository at this point in the history
  • Loading branch information
Spomky committed Nov 12, 2023
1 parent 50b6418 commit 2dd3299
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webauthn/src/PublicKeyCredentialCreationOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function __construct(
public readonly PublicKeyCredentialUserEntity $user,
string $challenge,
/** @readonly */
public array $pubKeyCredParams,
public array $pubKeyCredParams = [],
/** @readonly */
public null|AuthenticatorSelectionCriteria $authenticatorSelection = null,
/** @readonly */
Expand Down Expand Up @@ -83,7 +83,7 @@ public static function create(
PublicKeyCredentialRpEntity $rp,
PublicKeyCredentialUserEntity $user,
string $challenge,
array $pubKeyCredParams,
array $pubKeyCredParams = [],
/** @readonly */
null|AuthenticatorSelectionCriteria $authenticatorSelection = null,
/** @readonly */
Expand Down

0 comments on commit 2dd3299

Please sign in to comment.