# Signing in users with a phone number on Identity Platform

This document shows you how to use Identity Platform to sign in users with a
phone number.

## Before you begin

1. Enable Identity Platform. See the [Quickstart](https://docs.cloud.google.com/identity-platform/docs/sign-in-user-email.md.txt) to learn how.

## Enable phone sign-in for Identity Platform

1. Go to the **Identity Providers** page.


   [Go to Identity Providers](https://console.cloud.google.com/customer-identity/providers)
2. On the **Identity Providers** page, click **Add a provider**.

3. In the **Select a provider** list, select
   **Phone**.

4. Click the **Enabled** toggle to on.

5. To save the provider settings, click **Save**.

## Configure phone sign-in for your app platform

If you are using Identity Platform for Apple, Android, or web platforms, you must
also configure your app from the Firebase console.

- For Apple platforms:

  - Enable phone number sign-in for your Firebase project.
  - Enable app verification with silent push notifications.

  For instructions, see [Authenticate with Firebase
  on Apple platforms using a phone number](https://firebase.google.com/docs/auth/ios/phone-auth).
- For Android platforms:

  - Enable phone number sign-in for your Firebase project.
  - Enable app verification with the Play Integrity API.

  For instructions, see [Authenticate with
  Firebase on Android using a phone number](https://firebase.google.com/docs/auth/ios/phone-auth).
- For web platforms:

  - Enable phone number sign-in for your Firebase project.
  - Set up the reCAPTCHA verifier.

  For instructions, see [Authenticate with Firebase with a phone number
  using JavaScript](https://firebase.google.com/docs/auth/web/phone-auth).

> [!CAUTION]
> **Caution:** SMS authentication flows are common targets for attacks like SMS pumping and toll fraud, which can lead to unexpected charges. To protect your project, we strongly recommend configuring an explicit SMS region policy that restricts traffic to your specific operating regions. For additional defense against bots and automated attacks, consider enabling [reCAPTCHA SMS defense](https://docs.cloud.google.com/identity-platform/docs/recaptcha-tfp) and configuring an [SMS region policy](https://docs.cloud.google.com/identity-platform/docs/admin/sms-regions.md.txt).

## What's Next

- Learn how to [register test phone numbers](https://docs.cloud.google.com/identity-platform/docs/test-phone-numbers.md.txt) for development purposes.
- Learn how to [use SMS regions to restrict Identity Platform SMS verification usage](https://cloud.google.com/identity-platform/docs/admin/sms-regions).