counter === 0) { return; } if ($currentCounter <= $credentialRecord->counter) { throw new RuntimeException('Invalid WebAuthn signature counter (possible cloned authenticator).'); } } }