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

The **`name`** read-only property of
the {{domxref("PasswordCredential")}} interface returns a {{domxref("USVSTring")}}
containing a human-readable public name for display in a credential chooser.

## Syntax

```js
name = passwordCredential.name
```

### Value

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

## Specifications

{{Specifications}}

## Browser compatibility

{{Compat}}
