I am attempting to implement login functionality using Firebase auth, in NextJS. Calling the function with invalid login details logs an error to the console, despite the empty catch statement in the handler for the login function. How do I suppress Firebase from logging this error to the console?
Login function handler:
const signinWithEmail = async (email, password) => {
setLoading(true);
signInWithEmailAndPassword(auth, email, password)
.then((response) => {
handleUser(response.user);
Router.push("/");
})
.catch((error) => {
// Do nothing
});
};
Error in console (blurred due to exposed API key):
