demo · v134
Digital Credentials — Presentation
navigator.credentials.get({ digital: ... }) lets a relying party request a digital credential (mobile driver's licence, age verification, organisation badge) from a wallet on the user's device. Choose a request profile and click "request" — the page invokes the API and shows the wallet's response or the error.
Heads up
On desktop, behind
chrome://flags/#web-identity-digital-credentials and requires a wallet provider. On Android, generally requires a configured credential manager wallet. Without a wallet the request rejects — the demo will surface the actual rejection so you can see exactly why.
probing navigator.credentials.get({digital:...})...
Try it
no request yet
The code
const cred = await navigator.credentials.get({
digital: {
requests: [{
protocol: "openid4vp",
data: {
nonce: "abc123",
presentation_definition: { /* what claims you want */ }
}
}]
},
mediation: "required",
});
console.log(cred.protocol, cred.data); // signed VP from the wallet
see also
- Digital Credentials API — feature index
- ChromeStatus entry
- Digital Credentials API spec