🔑
How to Store a Password
We deliberately don't store the actual password (just
****
) in the user data, so password inputs have to be obtained manually using JS.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
Last modified 1yr ago