Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firebase Auth - signInWithEmail and password throw exception with undocumented code. #6782

Closed
safield opened this issue Aug 10, 2021 · 1 comment
Labels
resolution: duplicate This issue or pull request already exists

Comments

@safield
Copy link

safield commented Aug 10, 2021

I am calling FirebaseAuth.signInWithEmail and password.

It is throwing an exception with a code of 'too-many-requests', which is undocumented in the source code comment....

/// Attempts to sign in a user with the given email address and password.
 ///
 /// If successful, it also signs the user in into the app and updates
 /// any [authStateChanges], [idTokenChanges] or [userChanges] stream
 /// listeners.
 ///
 /// **Important**: You must enable Email & Password accounts in the Auth
 /// section of the Firebase console before being able to use them.
 ///
 /// A [FirebaseAuthException] maybe thrown with the following error code:
 /// - **invalid-email**:
 ///  - Thrown if the email address is not valid.
 /// - **user-disabled**:
 ///  - Thrown if the user corresponding to the given email has been disabled.
 /// - **user-not-found**:
 ///  - Thrown if there is no user corresponding to the given email.
 /// - **wrong-password**:
 ///  - Thrown if the password is invalid for the given email, or the account
 ///    corresponding to the email does not have a password set.
Future<UserCredential> signInWithEmailAndPassword({
   required String email,
   required String password,
 }) async {
   return UserCredential._(
     this,
     await _delegate.signInWithEmailAndPassword(email, password),
   );
 }
@safield safield added good first issue Good for newcomers type: documentation Improvements or additions to documentation labels Aug 10, 2021
@darshankawar darshankawar added the triage Issue is currently being triaged. label Aug 10, 2021
@darshankawar
Copy link

@safield
There's similar open issue describing your case, #3273
Please follow-up there for updates.
Closing this as duplicate.

@darshankawar darshankawar added resolution: duplicate This issue or pull request already exists and removed type: documentation Improvements or additions to documentation good first issue Good for newcomers triage Issue is currently being triaged. labels Aug 10, 2021
@firebase firebase locked and limited conversation to collaborators Sep 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolution: duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants