diff --git a/src/Entity/UserSystem/WebauthnKey.php b/src/Entity/UserSystem/WebauthnKey.php index 42dc6d53..8c8fa951 100644 --- a/src/Entity/UserSystem/WebauthnKey.php +++ b/src/Entity/UserSystem/WebauthnKey.php @@ -48,6 +48,12 @@ class WebauthnKey extends BasePublicKeyCredentialSource implements TimeStampable #[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'webauthn_keys')] protected ?User $user = null; + //Fix compatibility with webauthn-library >= 4.8 which would fail with an "failed to access uvInitialized before initialization" error otherwise + //TODO: Make these fields persistent, so that users can view these status infos in the UI + public ?bool $uvInitialized = null; + public ?bool $backupEligible = null; + public ?bool $backupStatus = null; + public function getName(): string { return $this->name;