Credential.id

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

The id property of the Credential interface returns a DOMString containing the credential's identifier. This might be any one of a GUID, username, or email address.

Syntax

var id = Credential.id;

Value

A DOMString containing the credential's identifier.

Specifications

Specification
Credential Management Level 1 (Credential Management 1)
# dom-credential-id

Browser compatibility

BCD tables only load in the browser