diff --git a/src/agent/ICheqd.ts b/src/agent/ICheqd.ts index 53a0946..2af4402 100644 --- a/src/agent/ICheqd.ts +++ b/src/agent/ICheqd.ts @@ -4832,6 +4832,9 @@ export class Cheqd implements IAgentPlugin { // validate credential payload vc property as VerifiableCredential if (!decodedCredential.payload.vc) throw new Error('[did-provider-cheqd]: decode jwt: decodedCredential.payload.vc is required') - return decodedCredential.payload.vc satisfies VerifiableCredential + return { + ...decodedCredential.payload.vc, + issuer: decodedCredential.payload.iss, + } satisfies VerifiableCredential } }