私はfirebaseアプリケーションをmonaca CLIとOnsenUIに接続しています。私はユーザーを作成し、同じアクションでログインしようとしています。私は成功し、ユーザーを作成することができますが、私は、ログインすることはできません。私は私でそれらをログインするとがFirebaseでユーザーにサインインするときに「auth/user-not-found」
auth/user-not-found
と
There is no user record corresponding to this identifier. The User may have been deleted
次のエラーを取得する私は、新しいユーザーことを確認しましたdb内にあります...
//signup function stuff
var login = function() {
console.log('got to login stuff');
var email = document.getElementById('username').value;
var password = document.getElementById('password').value;
//firebases authentication code
firebase.auth().createUserWithEmailAndPassword(email, password).catch(function(error) {
// Handle Errors here.
var errorCode = error.code;
var errorMessage = error.message;
console.log('User did not sign up correctly');
console.log(errorCode);
console.console.log(errorMessage);
});
firebase.auth().signInWithEmailAndPassword(email, password).catch(function(error) {
console.log(error.code);
console.log(error.message);
});
fn.load('home.html');
};
ユーザーを作成すると、自動的にそのユーザーがログに記録されるため、別々にログオンする必要はありません。 –