From 0245ce3370e1996dadf7e3747ce9f5c916454246 Mon Sep 17 00:00:00 2001 From: Dave Longley Date: Sun, 19 May 2024 22:56:55 -0400 Subject: [PATCH] Return `vc` claim from JWT payload as VC. --- lib/envelopes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/envelopes.js b/lib/envelopes.js index 843f553..d2cd85d 100644 --- a/lib/envelopes.js +++ b/lib/envelopes.js @@ -34,7 +34,7 @@ export async function parseEnvelope({ const payload = JSON.parse( TEXT_DECODER.decode(base64url.decode(split[1]))); const envelope = {data, mediaType}; - return {envelope, verifiableCredential: payload}; + return {envelope, verifiableCredential: payload.vc}; } } catch(e) { throw new BedrockError(