Firebase signInWithEmailAndPassword() 400() POST Error
Date : March 29 2020, 07:55 AM
wish helps you I can confirm @bojeil's answer, the error is intended behavior. Does not happen when password is correct!
|
not getting the customToken when trying to signInWithEmailAndPassword in firebase
Date : March 29 2020, 07:55 AM
it fixes the issue I think you are misunderstanding this. For custom auth, you are typically using your own auth system and not Firebase. Following the docs, they assume you are using your own username/password auth system. In that case, you send both to your backend server. You verify the credentials (username, password) in your own auth system. If they are legit, you lookup the user id in your auth system database, you then use the Firebase Admin SDK createCustomToken(uid) to mint a custom token with that uid. You send it back in the response to the client. The client will then call signInWithCustomToken to complete the sign-in.
|
Firebase signInWithEmailAndPassword always skips to else
Date : March 29 2020, 07:55 AM
fixed the issue. Will look into that further I am trying to make a login and signup page using Firebase on android, and I can register users but not login, I can see the registered users in the database. The login method always goes to the else part. Here is the code , Try this: else{
mLoginProgress.hide();
Toasty.error(getApplicationContext(), "Authentication failed: " + task.getException().getMessage(), Toast.LENGTH_SHORT).show();
}
String email = mLoginEmail.getEditText().toString();
String password = mLoginPassword.getEditText().toString();
String email = mLoginEmail.getText().toString();
String password = mLoginPassword.getText().toString();
|
The method signInWithEmailAndPassword() is Unresponsive - Firebase Web
Date : March 29 2020, 07:55 AM
With these it helps I don't see any issues with the Firebase code, but I do see an issue with your HTML code... You have a button at the end of your form, that button click is causing the form to be submitted. This is what's causing your page to reload. To fix it, include the click event in the button's onclick handler: <button class="btn btn-primary" id="loginBtn" onclick="loginToSearch(e)">Login!</button>
function loginToSearch(e) {
e.preventDefault(); // <-- prevent whatever default behavior would occur
// in this case, it prevents the form submission
const email = loginEmail.value;
const password = loginPassword.value;
// etc...
|
Firebase signInWithEmailAndPassword not firing .then() until after UI focus changes
Date : March 29 2020, 07:55 AM
help you fix your problem Do you have your remote debugger open in a Chrome browsers? Close it (debugger), reload app in simulator and it will work as expected.
|