简体   繁体   English

Firebase 身份验证 - 无法添加电话号码进行测试

[英]Firebase Auth - Unable to Add Phone Number for Testing

I'm unable to add a phone number for testing my Firebase Phone Authentication workflow.我无法添加电话号码来测试我的 Firebase 电话身份验证工作流程。 See the images below:请参阅下面的图片:

Firebase Phone Auth Panel Firebase 手机认证面板Firebase 电话身份验证

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 +1 123-456-7890

+11234567890 +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.我成功地在具有相同功能的先前 Firebase 支持的项目中使用了它。 I removed the test phone number from the Firebase project as I had finished testing the feature.我完成了该功能的测试后,从 Firebase 项目中删除了测试电话号码。 I think it very well may be a bug on Firebase's end我认为这很可能是 Firebase 端的一个错误

I was successfully able to use the phone number "+1 111-111-1111"我成功使用电话号码“+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成功使用“+1 111-111-1111”电话号码后,将其删除并尝试重新输入后,我遇到了同样的错误

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您需要先删除身份验证选项卡中的用户电话号码,然后才能添加(或重新添加)电话号码作为测试电话号码

  1. First delete number for Authentication > User Tab.首先删除身份验证 > 用户选项卡的号码。
  2. Then add number now, it works perfectly.然后现在添加数字,它可以完美运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM