跳转到正文

Firebase Google Login - 通用设置

GitHub

本指南将带你使用 Capacitor Social Login 插件,将 Google Sign-In 与 Firebase Authentication 集成。这样你就能在移动端使用原生 Google Sign-In,同时用 Firebase Auth 处理后端身份验证。

  1. 请访问 console.cloud.google.com
  2. 选择要使用的项目 Firebase 项目选择器
  3. 前往 Authentication 菜单
    1. 点击 build
    2. 点击 Authentication
    Firebase Authentication 菜单
  4. 点击 Get started 按钮 Firebase 快速开始按钮
  5. 选择以下任一 Email/Password 和 Google 或者 Google 仅 Firebase 选择 Email/Password 和 Google 按钮 Firebase 启用邮箱认证 Firebase 保存并启用 Google 认证 Firebase 启用“添加提供方”按钮 在添加电子邮件提供商后,在 Firebase 中添加 Google 提供商
  6. 启用 Google 提供方 在 Firebase 中启用 Google 身份验证
  7. 添加支持邮箱 在 Firebase 中添加支持邮箱 在 Firebase 中添加支持邮箱(第二部分)
  8. 更改 Public-facing name for project. 在 Firebase 中更改公开显示的名称
  9. 点击 Save 按钮 Firebase 保存公开名称

搞定,你现在已经启用了 Firebase Authentication 的 Google 登录 🎉

继续阅读:Firebase Google Login - 常规设置

标题为“继续阅读:Firebase Google Login - 常规设置”的章节

如果你正在使用 Firebase Google Login - 通用设置 用来规划身份验证和账户流程,并将它与 使用 @capgo/capacitor-social-login 关于使用 @capgo/capacitor-social-login 的原生能力, @capgo/capacitor-social-login 在 @capgo/capacitor-social-login 中查看实现细节, @capgo/capacitor-passkey 有关 @capgo/capacitor-passkey 的实现细节, @capgo/capacitor-native-biometric 以及 @capgo/capacitor-native-biometric 中的实现细节, 双因素认证 有关双重身份验证的实现细节。