Credential managementBaseline · Widely available
The navigator.credentials API provides generic storage for authentication credentials. Other credential APIs represent specific kinds of credentials, such as password or public key credentials, that the credential management API stores.
Supported in all major browsers for at least 30 months — safe to use without fallbacks. Baseline since Jan 15, 2020. Widely available since Jul 15, 2022.
Browser support
DesktopChrome
1–59Not supported
60+Supportedsince Jul 25, 2017
Current: 155Edge
12–18Not supported
79+Supportedsince Jan 15, 2020
Current: 154Firefox
1–59Not supported
60+Supportedsince May 9, 2018
Current: 157Safari
1–12.1Not supported
13+Supportedsince Sep 19, 2019
Current: 27MobileChrome Android
18–59Not supported
60+Supportedsince Aug 1, 2017
Current: 155Firefox Android
4–59Not supported
60+Supportedsince May 9, 2018
Current: 157Safari iOS
1–12.2Not supported
13+Supportedsince Sep 19, 2019
Current: 27How to use
This feature is Baseline widely available — use it freely, no fallback needed.
Example
Full syntax and examples are on MDN: Credential.
Feature detection
JS · check before using
if ("Credential" in globalThis) {
// Credential is available
} else {
// load a polyfill or use a fallback
}Sub-features
Support for each part of the feature (10). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| Credential | 51 | 18 | 60 | 13 | 51 | 60 | 13 |
| Credential.id | 51 | 18 | 60 | 13 | 51 | 60 | 13 |
| Credential.isConditionalMediationAvailable_static | 148 | 148 | ✕ | 16 | 148 | ✕ | 16 |
| Credential.type | 51 | 18 | 60 | 13 | 51 | 60 | 13 |
| CredentialsContainer | 51 | 18 | 60 | 13 | 51 | 60 | 13 |
| CredentialsContainer.create | 60 | 18 | 60 | 13 | 60 | 60 | 13 |
| CredentialsContainer.get | 51 | 18 | 60 | 13 | 51 | 60 | 13 |
| CredentialsContainer.preventSilentAccess | 60 | 18 | 60 | 17 | 60 | 60 | 17 |
| CredentialsContainer.store | 51 | 79 | 60 | 13 | 51 | 60 | 13 |
| Navigator.credentials | 51 | 18 | 60 | 13 | 51 | 60 | 13 |