Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding test phone number in firebase phone authentication

How to add test phone numbers for firebase phone auth, to skip otp screen or entering a predefined otp.

like image 593
narendra kumar Avatar asked Feb 27 '19 09:02

narendra kumar


People also ask

How do I add my test number to Firebase?

In the Firebase console, open the Authentication section. In the Sign in method tab, enable the Phone provider if you haven't already. Open the Phone numbers for testing accordion menu. Provide the phone number you want to test, for example: +1 650-555-3434.

How do I authenticate a phone number?

What is phone number authentication? Phone number authentication is an authentication method in which a sender sends an SMS message to a receiver's phone. Then, the receiver logs into its phone with a one-time code provided in the SMS message.

How do I change the SMS verification template in Firebase phone Auth?

Unfortunately, neither the email verification template nor the SMS verification template can be modified. You can select the language from the Firebase Console, however this is a per project setting and you can't modify the templates.


2 Answers

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.

like image 79
Zeeshan Ahmed Avatar answered Nov 16 '22 02:11

Zeeshan Ahmed


You can test the firebase OTP phone auth on the authentication --> SignIn method as below.

enter image description here

like image 20
Brahma Datta Avatar answered Nov 16 '22 00:11

Brahma Datta