--- title: PasswordCredential.password slug: Web/API/PasswordCredential/password tags: - API - Credential Management API - PasswordCredential - Propriété - Reference translation_of: Web/API/PasswordCredential/password ---

{{SeeCompatTable}}{{APIRef("")}}

La propriété password est une propriété accessible en lecture seule rattachée à l'interface {{domxref("PasswordCredential")}} et fournit une chaîne de caractères {{domxref("USVString")}} contenant le mot de passe lié aux informations d'authentification.

Syntaxe

password = passwordCredential.password

Valeur

Une chaîne de caractères {{domxref("USVString")}} contenant le mot de passe.

Spécifications

Spécification État Commentaires
{{SpecName('Credential Management','#dom-passwordcredential-password','password')}} {{Spec2('Credential Management')}} Définition initiale.

Compatibilité des navigateurs

{{Compat("api.PasswordCredential.password")}}