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

Provide a way to deactivate the auth request limit for testing purposes #2358

Closed
mscherer82 opened this issue Jan 25, 2021 · 2 comments
Closed
Assignees
Labels
api: auth type: question Further information is requested

Comments

@mscherer82
Copy link

mscherer82 commented Jan 25, 2021

Implementing SMS code authentication, change phone number features or working on a bug (like this one firebase/flutterfire#4651) is difficult because after only a few (5?) login attmeps firebase is blocking the phone number for a certain time.

It seems this kind of limitation is not listed here: https://firebase.google.com/docs/auth/limits

Google "firebase auth too many requests" show a lot of result where develops are struggling with this issue.

@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@sam-gc sam-gc added the type: question Further information is requested label Jan 26, 2021
@sam-gc
Copy link
Contributor

sam-gc commented Jan 26, 2021

Hi, thanks for reaching out

You are correct, the service will start to limit requests after a certain point. To get around this problem, during debugging or integration testing, we have FirebaseAuthSettings#setAppVerificationDisabledForTesting. This will bypass app verification checks and will skip sending an actual text message; instead you'll enter the code you pre-set in the Firebase Console. Just remember to turn this off before deploying :)

@sam-gc sam-gc closed this as completed Jan 26, 2021
@firebase firebase locked and limited conversation to collaborators Feb 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: auth type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

5 participants