Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

252
Views
vue + firebase auth output console.log of auth/internal-error instead auth/invalid-password

I'm trying to test authentication of my simple vue application that using firebase, but the console.log of its error give output "auth/internal-error" instead "auth/invalid-password" when I give empty password

Firebase: An internal AuthError has occurred. (auth/internal-error).

<script setup>

import { ref } from 'vue'
import firebase from 'firebase/compat/app';
import 'firebase/compat/auth';
import { useRouter } from 'vue-router'

const email = ref('')
const password = ref('')
const errMsg = ref()
const router = useRouter()
const login = () => {
    firebase
        .auth()
        .signInWithEmailAndPassword(email.value, password.value)
        .then((data) => {
        console.log('Successfully logged in!');
        router.push('/dashboard')
        })
        .catch((error) => {
            const errorCode = error.code;
            const errorMessage = error.message;   
            console.log(error.message);
        })
}
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You should not allow the request with an empty password. Handle the error before, when you know it will happen.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!