Package-level declarations

Types

Link copied to clipboard
open class Credential

The Credential interface of the Credential Management API provides information about an entity (usually a user) normally as a prerequisite to a trust decision. Available only in secure contexts.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The CredentialsContainer interface of the Credential Management API exposes methods to request credentials and notify the user agent when events such as successful sign in or sign out happen. Available only in secure contexts.

Functions

Link copied to clipboard
inline suspend fun CredentialsContainer.create(): Credential?

The create() method of the CredentialsContainer interface creates a new credential, which can then be stored and later retrieved using the CredentialsContainer.get method.

Link copied to clipboard
inline suspend fun CredentialsContainer.get(): Credential?

The get() method of the CredentialsContainer interface returns a Promise that fulfills with a single credential, which can then be used to authenticate a user to a website.

Link copied to clipboard

The preventSilentAccess() method of the CredentialsContainer interface sets a flag that specifies whether automatic log in is allowed for future visits to the current origin, then returns a Promise that resolves to undefined.

Link copied to clipboard
inline suspend fun CredentialsContainer.store(credential: Credential)

The store() method of the ``js-nolint store(credentials) `` - credentials - : A valid Credential instance.