coderef

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: 155
Edge
12–115Not supported
116+Supportedsince Aug 21, 2023
Current: 154
Firefox
✕Not supportedup to 157
Current: 157
Safari
✕Not supportedup to 27
Current: 27
MobileChrome Android
18–115Not supported
116+Supportedsince Aug 15, 2023
Current: 155
Firefox Android
✕Not supportedup to 157
Current: 157
Safari iOS
✕Not supportedup to 27
Current: 27

How 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
}

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
CredentialsContainer.get.identity_option108108✕27108✕27
CredentialsContainer.get.identity_option.context_option116116✕✕116✕✕
CredentialsContainer.get.identity_option.providers_option_loginHint116116✕✕116✕✕
IdentityCredential108108✕✕108✕✕
IdentityCredential.token108108✕✕108✕✕