Credential

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The Credential interface of the the Credential Management API provides information about an entity as a prerequisite to a trust decision.

Properties

Credential.id Read only
Returns a DOMString containing the credential's identifier. This might be any one of a GUID, username, or email address.
Credential.type Read only
Returns a DOMString containing the credential's type. Valid values are password, federated and public-key. (For PasswordCredential, FederatedCredential and PublicKeyCredential)

Event handlers

None.

Methods

None.

Examples

// TBD

Specifications

Specification Status Comment
Credential Management Level 1 Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic support
Experimental
Chrome Full support 51Edge Full support 18Firefox Full support 60IE ? Opera ? Safari ? WebView Android Full support 51Chrome Android Full support 51Edge Mobile ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
id
Experimental
Chrome Full support 51Edge Full support 18Firefox Full support 60IE ? Opera ? Safari ? WebView Android Full support 51Chrome Android Full support 51Edge Mobile ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
type
Experimental
Chrome Full support 51Edge Full support 18Firefox Full support 60IE ? Opera ? Safari ? WebView Android Full support 51Chrome Android Full support 51Edge Mobile ? Firefox Android ? Opera Android ? Safari iOS ? Samsung Internet Android ?
name (from CredentialUserData mixin)
Experimental
Chrome No support 51 — 52
Notes
No support 51 — 52
Notes
Notes See Bug 602980.
Edge ? Firefox No support NoIE ? Opera ? Safari ? WebView Android No support 51 — 52
Notes
No support 51 — 52
Notes
Notes See Bug 602980.
Chrome Android No support 51 — 52
Notes
No support 51 — 52
Notes
Notes See Bug 602980.
Edge Mobile ? Firefox Android No support NoOpera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.
See implementation notes.
See implementation notes.

Document Tags and Contributors

Contributors to this page: fscholz, jpmedley, Garitz, apowers313, salman-shah
Last updated by: fscholz,