coderef

Digital credentialsLimited availability

The digital credentials API issues and requests digital credentials, such as driver's licenses or ID cards, with the browser or operating system. Digital credentials extend the navigator.credentials credential management API.

Not yet supported in all major browsers — check the table and provide a fallback.

Browser support

DesktopChrome
1–140Not supported
141+Supportedsince Sep 30, 2025
Current: 155
Edge
12–140Not supported
141+Supportedsince Oct 3, 2025
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
1–18.6Not supported
26+Supportedsince Sep 15, 2025
Current: 27
MobileChrome Android
18–140Not supported
141+Supportedsince Sep 30, 2025
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
1–18.6Not supported
26+Supportedsince Sep 15, 2025
Current: 27

How to use

Not supported in Firefox, Firefox Android. Use feature detection below and provide a fallback (or a polyfill) for those browsers.

Example

Full syntax and examples are on MDN — see the links below.

Feature detection

JS · check before using
if ("DigitalCredential" in globalThis) {
  // DigitalCredential is available
} else {
  // load a polyfill or use a fallback
}

Sub-features

Support for each part of the feature (5). The overall table above shows when the whole feature works.

Sub-featureChromeEdgeFirefoxSafariChrome AndroidFirefox AndroidSafari iOS
DigitalCredential141141✕26141✕26
DigitalCredential.data141141✕26141✕26
DigitalCredential.protocol141141✕26141✕26
DigitalCredential.toJSON141141✕26141✕26
DigitalCredential.userAgentAllowsProtocol_static141141✕26141✕26