Skip to content

Commit

Permalink
Merge pull request #559 from joostdebruijn/joost/fix-authenticator-re…
Browse files Browse the repository at this point in the history
…sponse-denormalizer

fix: detect realType AuthenticatorAttestationResponse
  • Loading branch information
Spomky authored Feb 26, 2024
2 parents 4b72a4b + c725327 commit 9479935
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function denormalize(mixed $data, string $type, string $format = null, ar
}

$realType = match (true) {
! array_key_exists('authenticatorData', $data) && ! array_key_exists(
array_key_exists('attestationObject', $data) && ! array_key_exists(
'signature',
$data
) => AuthenticatorAttestationResponse::class,
Expand Down

0 comments on commit 9479935

Please sign in to comment.