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

The **`password`** read-only property
of the {{domxref("PasswordCredential")}} interface returns a {{domxref("USVString")}}
containing the password of the credential.

## Syntax

```js
password = passwordCredential.password
```

### Value

A {{domxref("USVString")}} containing a password.

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
