# Work in Progress: How to Store a Password

{% hint style="info" %}
We deliberately don't store the actual password (just `****`) in the user data, so password inputs have to be obtained manually using JS.
{% endhint %}

Here's the code we recommend, which will work with both deployed Flows and Flows in the builder/standalone/feedback mode:

```
const password = document.querySelector('savvy-flow')?.shadowRoot?.querySelector('input[type="password"]')?.value || document.querySelector('input[type="password"]')?.value
```
