[Vuejs]-Oops. The email address is badly formatted Firebase / Vue

1👍

hey you can if the email id is with qoutes or not

you can check that in inspect network

0👍

Fixed it with the following code:

    <script>
  import firebase from 'firebase';
  export default {
    name: 'login',
    data() {
      return {
        email: '',
        password: ''
      }
    },
    methods: {
      login: function() {
        firebase.auth().signInWithEmailAndPassword(this.email, this.password).then(
          (user) => {
            this.$router.replace('home')
          },
          (err) => {
            alert('Oops. ' + err.message)
          }
        );
      }
    }
  }
</script>

Leave a comment