Identity & Payments

Credential Management

Probing…

Credential Management is a web platform capability in the Identity & Payments category. Store and retrieve credentials via the browser. Supported in Chromium 51+, Firefox 60+, and Safari 13+. Requires a secure context (HTTPS or localhost).

Secure context

Try it

Loading demo…

Code

const cred = new PasswordCredential({ id: 'demo-user', password: 'demo-password' })
await navigator.credentials.store(cred)

const retrieved = await navigator.credentials.get({ password: true, mediation: 'optional' })
console.log(retrieved?.id, retrieved?.type)

await navigator.credentials.preventSilentAccess()

Browser support

Chromium
51
Firefox
60
Safari
13

Frequently asked questions

Which browsers support Credential Management?

Supported in Chromium 51+, Firefox 60+, and Safari 13+.

Does Credential Management require HTTPS?

Yes. Credential Management needs a secure context, so it only works over HTTPS (or on localhost during development).

What is Credential Management used for?

Store and retrieve credentials via the browser.

Can I try Credential Management in my browser?

Yes. shwcs.net runs a live Credential Management demo that probes your current browser and lets you try the API. Everything runs locally — nothing is sent anywhere.

MDN reference ↗ Specification ↗