0
You can securely send passwords from client-side by using environment variables. Information on that here: https://dev.to/deammer/loading-environment-variables-in-js-apps-1p7p
Keep in mind for Vue specifically you need to prefix environment variables. So instead of MY_VAR, you need to attach VUE_APP_ to everything, so it will be VUE_APP_MY_VAR.
await page.authentication({ username: process.env.VUE_APP_USERNAME, password: process.env.VUE_APP_PASSWORD })
- [Vuejs]-How do I add a folder to run PHP scripts in Nuxt Project folder?
- [Vuejs]-Slick.js don't work when v-for is updated
Source:stackexchange.com