Federated credential managementLimited availability
The IdentityCredential API delegates authentication to a third-party identity provider, instead of using third-party cookies. Also known as FedCM.
Not yet supported in all major browsers — check the table and provide a fallback.
Browser support
DesktopChrome
1–115Not supported
116+Supportedsince Aug 15, 2023
Current: 155Edge
12–115Not supported
116+Supportedsince Aug 21, 2023
Current: 154Firefox
✕Not supportedup to 157
Current: 157Safari
✕Not supportedup to 27
Current: 27MobileChrome Android
18–115Not supported
116+Supportedsince Aug 15, 2023
Current: 155Firefox Android
✕Not supportedup to 157
Current: 157Safari iOS
✕Not supportedup to 27
Current: 27How to use
Not supported in Firefox, Safari, Firefox Android, Safari iOS. Use feature detection below and provide a fallback (or a polyfill) for those browsers.
Example
Full syntax and examples are on MDN: IdentityCredential.
Feature detection
JS · check before using
if ("IdentityCredential" in globalThis) {
// IdentityCredential is available
} else {
// load a polyfill or use a fallback
}Documentation (MDN)
Specification
Sub-features
Support for each part of the feature (5). The overall table above shows when the whole feature works.
| Sub-feature | Chrome | Edge | Firefox | Safari | Chrome Android | Firefox Android | Safari iOS |
|---|---|---|---|---|---|---|---|
| CredentialsContainer.get.identity_option | 108 | 108 | ✕ | 27 | 108 | ✕ | 27 |
| CredentialsContainer.get.identity_option.context_option | 116 | 116 | ✕ | ✕ | 116 | ✕ | ✕ |
| CredentialsContainer.get.identity_option.providers_option_loginHint | 116 | 116 | ✕ | ✕ | 116 | ✕ | ✕ |
| IdentityCredential | 108 | 108 | ✕ | ✕ | 108 | ✕ | ✕ |
| IdentityCredential.token | 108 | 108 | ✕ | ✕ | 108 | ✕ | ✕ |