From 0164d83453cc60c6aff9893715220adde66bc272 Mon Sep 17 00:00:00 2001 From: Eric Stern Date: Sun, 19 Nov 2023 12:44:02 -0800 Subject: [PATCH] disable v2 for now --- src/Codecs/Credential.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Codecs/Credential.php b/src/Codecs/Credential.php index 61e9db9..c2e20b5 100644 --- a/src/Codecs/Credential.php +++ b/src/Codecs/Credential.php @@ -94,6 +94,7 @@ public function encode(CredentialInterface $credential): string return base64_encode($binary); } + /* public function encodeV2(CredentialInterface $credential): string { $version = 2; @@ -110,6 +111,7 @@ public function encodeV2(CredentialInterface $credential): string $ao = $credential->getAttestationObject(); $aCDJ = $credential->getAttestationClientDataJSON(); } + */ public function decode(string $encoded): CredentialInterface { @@ -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: [], ); }