diff --git a/packages/ssi-types/src/mapper/credential-mapper.ts b/packages/ssi-types/src/mapper/credential-mapper.ts index 968904290..7a3f145bf 100644 --- a/packages/ssi-types/src/mapper/credential-mapper.ts +++ b/packages/ssi-types/src/mapper/credential-mapper.ts @@ -358,7 +358,7 @@ export class CredentialMapper { return ObjectUtils.isString(original) && !original.startsWith('ey') && ObjectUtils.isBase64(original) } - public static isW3cCredential(credential: ICredential | SdJwtDecodedVerifiableCredential): credential is ICredential { + public static isW3cCredential(credential: ICredential | SdJwtDecodedVerifiableCredential | MdocDocument): credential is ICredential { return typeof credential === 'object' && '@context' in credential && ((credential as ICredential).type?.includes('VerifiableCredential') || false) }