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.
Credential
MDN Reference
The id read-only property of the Credential interface returns a string containing the credential's identifier.
id
The type read-only property of the Credential interface returns a string containing the credential's type.
type