Note: 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
CredentialCreationOptionsthat contains options for the requested new
Credentialsobject. It must include one of the options "password", "federated", or "publicKey". The options are:
password: Optional Either an
HTMLFormElement, or a
federated: Optional An
FederatedCredentialInitobject. Contains requirements for creating/obtaining federated credentials. The available options are:
publicKey: Optional an object that describes the options for creating a WebAuthn credential containing the following properties:
rp: An object describing the relying party which requested the credential creation.
user: An object describing the user account for which the credential is generated.
BufferSource, emitted by the relying party's server and used as a cryptographic challenge. This value will be signed by the authenticator and the signature will be sent back as part of
Arrayof element which specify the desired features of the credential, including its type and the algorithm used for the cryptographic signature operations. This array is sorted by descending order of preference.
timeoutOptional: A numerical hint, in milliseconds, which indicates the time the caller is willing to wait for the creation operation to complete. This hint may be overridden by the browser.
Arrayof descriptors for existing credentials. This is provided by the relying party to avoid creating new public key credentials for an existing user who already have some.
authenticatorSelectionOptional: An object whose properties are criteria used to filter out the potential authenticators for the creation operation.
Stringwhich indicates how the attestation (for the authenticator's origin) should be transported.
extensionsOptional: An object with several client extensions' inputs. Those extensions are used to request additional processing (e.g. dealing with legacy FIDO APIs credentials, prompting a specific text on the authenticator, etc.).
|Credential Management Level 1 (Credential Management 1)|
BCD tables only load in the browser