Skip to content

Commit

Permalink
Return vc claim from JWT payload as VC.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlongley committed May 20, 2024
1 parent c358711 commit 0245ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/envelopes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 0245ce3

Please sign in to comment.