Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the sms verification template in firebase phone auth

in console firebase, in the menu Authentification -> Templates

There is a sms verification template :

%LOGIN_CODE% is your verification code. 

How to change this message template?

like image 995
faruk Avatar asked Jul 03 '17 06:07

faruk


People also ask

How do I change my SMS template?

Adjusting the SMS templateLocate the SMS message in the list and click Edit: Scroll down to the SMS template section. Here you can edit your message, and insert placeholders where relevant: Check the Preview below to see how your message will look to your clients.

How do I remove Captcha verification from Firebase phone auth using Android?

Don't forget to go in Firebase Project Settings > App check > and Register firebase project in SafetyNet and Play Integrity register with default time token 1 hour and u will remove reCaptcha from phone auth OTP!

How do I turn off reCaptcha in Firebase phone Auth OTP flutter?

You can remove reCaptcha by Enabling the Android Device Verification API in Your Project on google cloud console. You can do that by Adding Your Project there. After that you should also add SHA-256 key in Your Firebase Project in Project Setting. Now there will be no reCaptchaa to verify to that your are not a robot.

How do I add my phone number to Firebase Authentication?

Create fictional phone numbers and verification codesIn 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.


2 Answers

firebaser here

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.

We understand that changing the template would allow you to tweak the user-experience of your app, but we don't allow this to prevent abuse of the service.

like image 107
Frank van Puffelen Avatar answered Oct 07 '22 21:10

Frank van Puffelen


Update 1 year later, still a no go, but I received this back from support

The Firebase SMS Authentication message content will depend on the platform you are requesting that message from. Here is a list of the possible variations you may get:

  • iOS and Android - The SMS messages draw the app's name from the App Store / Play Store. One an app is published, the correct name
    should start appearing. There may be a small delay (a week or two at
    most).
  • Web - It will always use the domain that the SMS is requested from. To modify it, you can setup a custom domain.
  • iOS (using Recaptcha) - Phone authentication on iOS will show the project's url instead of the app's name in the verification SMS when using the reCAPTCHA flow. This is expected behavior. The reCAPTCHA flow was added for cases where an APNS token is not available (including on real devices). If APNS is not correctly configured, a real device will default to the reCAPTCHA flow.

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.

We understand that changing the template would allow you to tweak the user-experience of your app, but we don't allow this to prevent abuse of the service. I hope this clears your consults about this topic. If you happen to have any more questions, please, do not hesitate to write back!

like image 33
mikemags1 Avatar answered Oct 07 '22 20:10

mikemags1