demo · v133 · origin trial

Selective disclosure designer

The privacy point of the Digital Credentials API: ask for only the claims you actually need. Toggle individual claims from an mDL and watch the request shrink. The scope meter goes from over-collecting to minimal in real time.

Available behind chrome://flags/#web-identity-digital-credentials and in origin trials. Without it, the snippet still demonstrates the request structure but no wallet will respond.

request claims

generated request

scope: · 0 of 10 claims requested

why this matters

Pre-Digital-Credentials, sites asking for identity got back an entire document — full name, address, photo, license expiry — even when the only question was “is this person over 21?”. The mDoc/SD-JWT protocols support selective disclosure: the page asks for specific claims, the wallet presents only those, and (for age claims) returns a yes/no rather than the raw birthdate. The API surfaces that natively, so the privacy posture lives in the request shape itself.

navigator.credentials.get({
  digital: {
    providers: [{
      protocol: "openid4vp-1.0",
      request: {
        // ask only what you need — smaller is better
        presentation_definition: { input_descriptors: [...] }
      }
    }]
  }
});

see also