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.
The id read-only property of the Credential interface returns a string containing the credential's identifier. This might be a GUID, username, or email address, or some other value, depending on the type of credential.
The type read-only property of the Credential interface returns a string containing the credential's type. Valid values are password, federated, public-key, identity and otp.