---
title: Credential.id
slug: Web/API/Credential/id
tags:
  - API
  - Credential
  - Credential Management API
  - Property
  - Reference
  - credential management
  - id
browser-compat: api.Credential.id
---
{{SeeCompatTable}}{{APIRef("Credential Management API")}}

The **`id`** property of the
{{domxref("Credential")}} interface returns a {{domxref("DOMString")}} containing the
credential's identifier. This might be any one of a GUID, username, or email
address.

## Syntax

```js
var id = Credential.id;
```

### Value

A {{domxref("DOMString")}} containing the credential's identifier.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
