I have user profile page. In there I have three fields. Name, Email, password. I can fetch the name and email but I can get not be able to the user password. how can I get the user password and store it in the v-model directive.
<template>
<div class="profile-outer">
<input type="text" v-model="profile.name">
<input type="email" v-model="profile.email">
<input type="password" v-model="profile.password">
</div>
</template>
data() {
return {
profile: {
name: '',
email: '',
password: '',
}
};
}
created() {
firebase.auth().onAuthStateChanged(user => {
if (user) {
this.profile.email = user.email;
this.profile.name = user.displayName;
console.log(user);
} else {
}
})
},