Skip to content

Commit

Permalink
disable v2 for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Firehed committed Nov 19, 2023
1 parent 9def70b commit 0164d83
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Codecs/Credential.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ public function encode(CredentialInterface $credential): string
return base64_encode($binary);
}

/*
public function encodeV2(CredentialInterface $credential): string
{
$version = 2;
Expand All @@ -110,6 +111,7 @@ public function encodeV2(CredentialInterface $credential): string
$ao = $credential->getAttestationObject();
$aCDJ = $credential->getAttestationClientDataJSON();
}
*/

public function decode(string $encoded): CredentialInterface
{
Expand Down Expand Up @@ -139,7 +141,7 @@ public function decode(string $encoded): CredentialInterface
// No way to know these from existing data.
isBackedUp: false,
isBackupEligible: false,
isUvInitialized: false, // should have been stored :(
isUvInitialized: false,
transports: [],
);
}
Expand Down

0 comments on commit 0164d83

Please sign in to comment.