@tinycloud/cli 1.5.1-beta.3 → 1.5.1-beta.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -30535,6 +30535,7 @@ async function publishEmailShareV3(input) {
30535
30535
  throw new TypeError("email share binding is invalid");
30536
30536
  }
30537
30537
  const descriptor = validateCredentialFlowDescriptor(input.credentialDescriptor);
30538
+ if (descriptor.subjectRelationship !== "holder_is_subject") throw new TypeError("email credential descriptor is not a ticket (did:key) descriptor");
30538
30539
  if (descriptor.issuer.did !== input.issuerDid || descriptor.issuer.kid !== input.issuerKid || !descriptor.claims.some((claim) => claim.name === "email" && claim.matching === "normalized_exact")) {
30539
30540
  throw new TypeError("email credential issuer or claim is invalid");
30540
30541
  }