I Used firebase authentication Sign in a user with an email address and password. I also enable email/password & i used firebase hosting.
It show
Error code >> auth/app-not-authorized
Massage >> This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.
firebase.auth().signInWithEmailAndPassword($('#username').val(), $('#password').val())
.then(
)
.catch(function (error) {
var errorCode = error.code;
var errorMessage = error.message;
console.log(">>>"+errorCode+">>"+errorMessage);
});