PublicKeyCredential

The PublicKeyCredential interface provides information about a public key / private key pair, which is a credential for logging in to a service using an un-phishable and data-breach resistant asymmetric key pair instead of a password. Available only in secure contexts.

MDN Reference

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The authenticatorAttachment read-only property of the PublicKeyCredential interface is a string that indicates the general category of authenticator used during the associated CredentialsContainer.create() or CredentialsContainer.get() call.

Link copied to clipboard
val id: String

The id read-only property of the Credential interface returns a string containing the credential's identifier.

Link copied to clipboard

The rawId read-only property of the containing the identifier of the credentials.

Link copied to clipboard

The response read-only property of the object which is sent from the authenticator to the user agent for the creation/fetching of credentials.

Link copied to clipboard

The type read-only property of the Credential interface returns a string containing the credential's type.

Functions

Link copied to clipboard

The getClientExtensionResults() method of the PublicKeyCredential interface returns a map between the identifiers of extensions requested during credential creation or authentication, and their results after processing by the user agent.

Link copied to clipboard

The toJSON() method of the PublicKeyCredential interface returns a JSON type representation of a PublicKeyCredential.