-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Phone auth failed: this app is not authorized to use Firebase Authentication #1039
Comments
Please read the documentation on certificates: https://developers.google.com/android/guides/client-auth You do not need to generate a certificate for debug - it uses the default android keystore. |
Hey, it's not use the default android keystore.. |
My point is, you don't need to generate a debug keystore, just use the default android keystore and you won't have any issues. |
but it ask me to generate sha1 for use phone auth, when i add app in firebase console |
Read the link I sent you: https://developers.google.com/android/guides/client-auth You can generate a SHA1 using the following command for debug:
|
that's what I did @chrisbianca, still get issues. I stuck with it 2 days. |
Sorry, but this isn't a react-native-firebase issue, I'd suggest following the official documentation from start to finish for phone auth and making sure you've done everything it says. Beyond that I'd turn to Stack Overflow to see if anybody has some time to help, but they will only suggest what I've already suggested. |
hi, i have same issue. Have you solve it ? |
@RZulfikri yes.
For Android studio 2.2 - result will be available under Run console but use highlighted toggle button. |
i have same issue i have already added SHA-1 package name to firebase but could not resolve this error |
Hi, I have the same issue. Has anyone found a solution? Thanks |
@chrisbianca, hello mate thanks for this awesome library |
@Manoj002 can you please share the code that you are using? |
@ManigandanRaamanathan, thanks for your reply mates, |
@Manoj002 may I get the code that you are using for my reference? |
Keytool -list -v -keystore (now this is your relative path to key.keystore[generated while creating your signed apk] file without parenthesis) -alias (here you need to give alias name which you provided in gradle.properties file I guess default is my-key-alias) Hope this helps |
you need to know exactly key for release app you can check by use google play console try upload your app and you will display the sha-1 |
You save my day! 👍 Thank you |
Any updates? |
@anastely There will typically never be updates on closed issues. If you're experiencing a problem please make sure you've followed all the steps in the relevant documentation, then open a new issue following the template |
@mikehardy thanks, I just have one small question? |
@anastely yes Firebase will send an SMS to your users |
@antoinefotso Great! should i change something in my code Or firebase app settings? |
There are so many things that can go wrong I wouldn't trust it until I had tried it on my own handset. But yes if you've at least got a testing phone number / code working you are close to success. One thing I'll note is that in my primary user country at least (Ecuador) I see varying performance across the competing carriers with regards to delivery of the SMS. One carrier is reliable and fast except if the number was recently ported then it fails, one is slow but reliable, one is unreliable. So don't consider SMS auth as the only way to do things, it can fail because of carrier behavior even when you've done everything right |
I had the same issue, but solved it by setting up SHA256 key. I had android seftynet feature enabled which requires you to set up SHA256 along with SHA1. |
i added both key sha 1 and sha 256 and also enable the play integraty api in google cloud console and the firebase is working with testing phone nmber and otp and not working with real number and sjowing this issue WARN Possible Unhandled Promise Rejection (id: 3): |
I added both release sha1 and sha 256 keys and also added play integrity API also test in debug keys in both modes only GoogleSignin is working and signInWithPhoneNumber giving an error [Error: [auth/app-not-authorized] This app is not authorized to use Firebase Authentication. Please verify that the correct package name, SHA-1, and SHA-256 are configured in the Firebase Console.] |
I'm trying to make react native with firebase phone auth through react-native-firebase docs and I get this error
I have already created debug.keystore
then I get the SHA1
and download the google-services.json and add to my react native app. then into my code I wrote
and I still get this error.
The text was updated successfully, but these errors were encountered: