在 Identity Platform 上使用電話號碼登入使用者帳戶

本文說明如何使用 Identity Platform,透過電話號碼登入使用者帳戶。

事前準備

  1. 登入 Google Cloud 帳戶。如果您是 Google Cloud新手,歡迎 建立帳戶,親自評估產品在實際工作環境中的成效。新客戶還能獲得價值 $300 美元的免費抵免額,可用於執行、測試及部署工作負載。
  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 role (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 role (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. 啟用 Identity Platform。如要瞭解如何操作,請參閱快速入門導覽課程

為 Identity Platform 啟用手機登入功能

  1. 前往「Identity Providers」(識別資訊提供者) 頁面。

    前往「Identity Providers」(識別資訊提供者)

  2. 在「Identity Providers」(身分識別提供者) 頁面上,按一下「Add a provider」(新增供應商)

  3. 在「Select a provider」(選取提供者) 清單中,選取「 Phone」(電話)

  4. 將「Enabled」(已啟用) 切換為開啟。

  5. 如要儲存提供者設定,請按一下「儲存」

為應用程式平台設定手機登入功能

如果您使用 Identity Platform for Apple、Android 或網頁平台,也必須透過 Firebase 控制台設定應用程式。

後續步驟