create method
The create()
method of the CredentialsContainer interface creates
a new , which can then be stored and later used to authenticate users via
CredentialsContainer.get.
This method supports three different types of credential:
- A password credential, which enables a user to sign in using a password.
- A federated credential, which enables a user to sign in using a federated identity provider.
- A public key credential, which enables a user to sign in with an authenticator such as a biometric reader built into the platform or a removable hardware token.
Note that the Federated Credential Management API (FedCM) supersedes the federated credential type.
Implementation
external JSPromise<Credential?> create([CredentialCreationOptions options]);