Como fazer login de usuários com um número de telefone no Identity Platform

Neste documento, mostramos como usar o Identity Platform para fazer login de usuários com um número de telefone.

Antes de começar

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  3. Verify that billing is enabled for your Google Cloud project.

  4. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator (roles/resourcemanager.projectCreator), which contains the resourcemanager.projects.create permission. Learn how to grant roles.

    Go to project selector

  5. Verify that billing is enabled for your Google Cloud project.

  6. Ative o Identity Platform. Consulte o Guia de início rápido para saber como.
  7. Ativar o login por telefone para o Identity Platform

    1. Acesse a página Provedores de identidade.

      Acessar "Provedores de identidade"

    2. Na página Provedores de identidade, clique em Adicionar um provedor.

    3. Na lista Selecionar um provedor, selecione Telefone.

    4. Clique no botão Ativado para ativar.

    5. Para salvar as configurações do provedor, clique em Salvar.

    Configurar o login com smartphone para a plataforma do seu app

    Se você estiver usando o Identity Platform para plataformas Apple, Android ou Web, também será necessário configurar o app no console do Firebase.

    A seguir