Skip to content

Commit 89e8fc3

Browse files
authored
Update server.php to set Signature counter to 0 (#100)
Was getting failures on apple passkeys when using touchID as the SigCounter remains at 0. hint found via apple passkey issue on stack overflow. https://stackoverflow.com/questions/78776653/passkey-counter-always-0-macos
1 parent 83b8060 commit 89e8fc3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

_test/server.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,8 @@
214214
$data->userId = $userId;
215215
$data->userName = $userName;
216216
$data->userDisplayName = $userDisplayName;
217-
217+
//set Null to 0
218+
$data->signatureCounter ??= 0;
218219
if (!isset($_SESSION['registrations']) || !array_key_exists('registrations', $_SESSION) || !is_array($_SESSION['registrations'])) {
219220
$_SESSION['registrations'] = [];
220221
}

0 commit comments

Comments
 (0)