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

The create() method of the CredentialsContainer interface returns a Promise that resolves with a new Credential instance based on the provided options, or null if no Credential object can be created.

This method is restricted to top-level contexts. Calls to it within an <iframe> element will resolve without effect.


var promise = CredentialsContainer.create([options])


An object of type CredentialCreationOptions that contains options for the requested new Credentials object. It must include one of the options "password", "federated", or "publicKey". The options are:


A Promise that resolves with a Credential instance, such as PasswordCredential, FederatedCredential, or PublicKeyCredential.


Specification Status Comment
Credential Management Level 1
The definition of 'get()' in that specification.
Working Draft Initial definition.
Web Authentication: An API for accessing Public Key Credentials Level 1 Recommendation Initial definition.

Browser compatibility

ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
Chrome Full support 60Edge Full support 18Firefox Full support YesIE ? Opera No support NoSafari Full support 13WebView Android Full support 60Chrome Android Full support 60Firefox Android Full support YesOpera Android No support NoSafari iOS Full support 13.3Samsung Internet Android Full support 8.0


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.