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