I'm unable to add a phone number for testing my Firebase Phone Authentication workflow. See the images below:
Firebase Phone Auth Panel
After providing a valid phone number/verification code and clicking "Add", I get this error:
I've tried to register my device multiple times over the last two weeks with the same outcome. Hopefully someone has seen this before and if so, is there a solution?
UPDATE:
I've tried the following number formats with the same results -
+1 123-456-7890
+11234567890
Long story short, I was using my personal phone number as the number for test; which I successfully used on a previous Firebase-backed project with the same feature. I removed the test phone number from the Firebase project as I had finished testing the feature. I think it very well may be a bug on Firebase's end
I was successfully able to use the phone number "+1 111-111-1111"
UPDATE:
After successfully using the '+1 111-111-1111' phone number, deleting it, and trying to re-enter it, I was greeted with the same error
You need to delete the User phoneNumber in the authentication tab before you can add (or re-add) a phone number as a test phone number
First delete number for Authentication > User Tab.
Then add number now, it works perfectly.
Related
I used user.unlinkFromProvider('phone') to unlink a user's phone account, leaving them with only an email/password account. I looped through user.providerData to confirm the only providerId are firebase and password. However, printing user.phoneNumber, I still see the value of the previously added phone. I'm expecting this value to be null since I've removed/unlinked the phone number.
For anyone else who comes across this, a simple user.reload() will update the user data.
I have implemented Firebase Auth into my app to let my users connect with their Google accounts. So far so good, however once a user has chosen to connect with a specific account from the google account chooser popup, he won't be able to choose a different account the next time he logs in. The previously selected account will be automatically picked for the authentication.
I really don't find this behavior correct, so I am trying to fix it.
After some research I found that I can use setCustomParameters(prompt: "select_account") with the googleProvider, like so:
this.googleProvider = new firebase.auth.GoogleAuthProvider();
this.googleProvider.setCustomParameters({
prompt: "select_account",
});
More info here: https://developers.google.com/identity/protocols/oauth2/openid-connect#authenticationuriparameters
In my case, using the consent and select_account parameters don't seem to have any impact, the user does not get to choose which account to use.
Edit: It would seem that it works correctly with chrome, but not with firefox...
I have found the source of the issue, it is in fact not really an issue. The google account picker will only show up if you have other accounts registered onto the device/browser you are currently using. If you want to choose a different account that is not saved into your device/browser, you would first need to log into it via google.
when i create my first project on firebase to use google signin authentication. my app successfully run and completer google signin.
But when i develop my second project on the firebase i do the same thing like add SHA1 and add support email, but when i tried to google signin from my app , it shows
sign_in_failed, com.google.android.gms.common.api.ApiException: 12500
I don't know why this error come.
Is there any condition that
1) we can't use a same SHA1 key to a different apps.
2) we can't user the same email id for 'support email' inside the google sign for the two projects
or please tell me there is any other condition regarding the using of multiple project on a same account of firebase.
Input both SHA-1 and SHA256.
Make sure you have added a Support Email.
Update Google Play Services.
If all of these fail, delete your keystore and generate a new one.
These are the issues that cause that error.
I had this error ApiException: 12500 for a long time. I have tried everything:
remove my debugkeystore, recreate one
add a support email on the firebase console
change plugin versions
update google on my device
Nothing worked but looking for a solution I found:
I went to this page (https://console.developers.google.com/apis/credentials) Select your project from the list (top left). Then go to "Oauth consent screen"
I filled out the app's logo and link on the app's homepage and application's privacy policy link (with the project.firebaseapp.com), and then saved.
enter image description here
After that it was good. I believe the official documentation should be updated.
For more information visit this link
enter link description here
I am developing and testing an app. I am getting the following message when I was expecting a text with the 6 digit pen.
{code: "auth/too-many-requests", message: "We have blocked all requests from this device due to unusual activity. Try again later."}
so I tried going to authentication => Sign-in method => phone and add a # for testing but i get the following error
error adding test phone number
Does anyone know how to get arround either one of these issues so i can continue testing my app.
Thanks
Per the documentation, you cannot add the phone number of an existing user. You should delete the user that is using your phone number before you can add it to the whitelist.
I am developing ionic app using angularfire2, I used google signin to login user and used phone auth to link phone number to user.
I linked phone number, now the scenario is to update mobile number. I searched on internet but I didn't found any suitable documentation to update mobile number using angularfire2. But I found that there is one method to update phone number i.e. updatePhoneNumber, but I am not sure with its parameters.
Can anyone help me with this to pass correct parameters to this method and update user's phone number.
The User.updatePhoneNumber() method takes a phoneCredential parameter, which you get from the ConfirmationResult that is sent with the verification text.