1. Enable Sign-in with Phone Number sign-in in your Firebase project
To sign in users by SMS, you must first enable the Phone Number sign-in method for your Firebase project:
- In the Firebase console, open the Authentication section.
- On the Sign-in Method page, enable the Phone Number sign-in method.
Firebase's phone number sign-in request quota is high enough that most apps won't be affected. However, if you need to sign in a very high volume of users with phone authentication, you might need to upgrade your pricing plan. See the pricing page.
2. Get the API key
To get an API key:
- Visit the Google Cloud Platform Console.
- Click the project drop-down and select or create the project for which you want to add an API key.
- Click the menu button and select APIs & Services > Credentials.
- On the Credentials page, click Create credentials > API key. The API key created dialog displays your newly created API key.
- Click Close. The new API key is listed on the Credentials page under API keys.
3. Add api key to your wp-config.php
Open your wp-config.php
file located in your Wordpress root folder and add below configuration to it, don't forget to change xxxxxxxxxxx
with your content.
define('MOBILE_BUILDER_FIREBASE_SERVER_KEY', 'xxxxxxxxxxx');