-
Notifications
You must be signed in to change notification settings - Fork 873
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
signInWithPhoneNumber()
error - "TypeError: Cannot read properties of undefined (reading 'settings')"
#6445
Comments
It looks like in this code, only 2 params are being passed to the |
Thanks! That was it. You may want to update the documentation here as it says: "If none is provided, the default Firebase Auth instance is used. A Firebase Auth instance must be initialized with an API key, otherwise an error will be thrown." When it appears it will error when |
@sam-gc Was it intended for the |
Ah yeah good catch, it's always expected to pass the auth instance. I just sent out #6460 |
I'm closing this issue for now since it seems like the docs have been updated. Please @ message me if that's incorrect, or open a new issue that refers to this one. Thanks! |
[REQUIRED] Describe your environment
[REQUIRED] Describe the problem
Encountering error when trying to use
signInWithPhoneNumber()
.Screenshot of where in source code:
![Screenshot 2022-07-19 at 09 08 18](https://user-images.githubusercontent.com/16018629/179700363-60fe8bf9-d8e8-4122-a3a6-a90a96b4d15a.png)
Steps to reproduce:
Run the following code. I reproduced using rollup.js as the bundler:
This is also an issue on FlutterFire which I help to maintain: firebase/flutterfire#9097
The text was updated successfully, but these errors were encountered: