Skip to content

Commit 3084c3a

Browse files
committed
unknown const on aaguids to centralize knowledge
1 parent feb1260 commit 3084c3a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Passkey.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ protected function authenticator(): Attribute
8181
return Attribute::get(function (): ?string {
8282
$aaguid = $this->credential['aaguid'] ?? null;
8383

84-
if (! is_string($aaguid) || $aaguid === '00000000-0000-0000-0000-000000000000') {
84+
if (! is_string($aaguid) || $aaguid === Aaguids::UNKNOWN) {
8585
return null;
8686
}
8787

src/Support/Aaguids.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
*/
1212
enum Aaguids: string
1313
{
14+
public const string UNKNOWN = '00000000-0000-0000-0000-000000000000';
15+
1416
case AliasVault = 'a11a5faa-9f32-4b8c-8c5d-2f7d13e8c942';
1517
case GooglePasswordManager = 'ea9b8d66-4d01-1d21-3ce4-b6b48cb575d4';
1618
case ChromeOnMac = 'adce0002-35bc-c60a-648b-0b25f1f05503';

0 commit comments

Comments
 (0)