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