Reputation: 309
How to add test phone numbers for firebase phone auth, to skip otp screen or entering a predefined otp.
Upvotes: 23
Views: 14082
Reputation: 289
The solution to this issue involves removing your phone number from the Authentication > Users tab. After that, Firebase will allow your number in the test list.
After removing your phone number from the users list, Firebase will treat it as a new number and allow it in the test list for phone authentication. You can then proceed with testing your phone number in Firebase without any issues.
Remember to make sure you have the necessary dependencies and configurations set up correctly in your project for Firebase phone authentication to work smoothly.
Upvotes: 0
Reputation: 320
first you need to check two points
after that you can add number by going to (Build -> Authentication -> Sign in methods -> Phone), you will find option for adding phone numbers for testing
Upvotes: 7
Reputation: 864
The answer to this problem is you first need to remove you phone number from the Authentication>>Users tab, then firebase will allow your number in test list.
Upvotes: 33
Reputation: 1112
You can test the firebase OTP phone auth on the authentication --> SignIn method as below.
Upvotes: 5