跳过内容

Firebase Google Login - General Setup

GitHub

本指南将指导您使用 Capacitor 社交登录插件将 Google Sign-In 与 Firebase Authentication 集成。这种设置允许您在移动平台上使用本机 Google Sign-In,同时利用 Firebase Auth 进行后端身份验证。

设置步骤

设置步骤部分
  1. 请前往 https://console.cloud.google.com
  2. 选择要使用的项目 Firebase 项目选择器
  3. 前往菜单 Authentication 菜单
    1. 点击 build
    2. 点击 Authentication
    Firebase 认证菜单
  4. 点击 Get started 按钮 Firebase 开始按钮
  5. 选择 Email/Password 并且 GoogleGoogle Firebase 选择电子邮件/密码和 Google 按钮 Firebase 启用电子邮件验证 Firebase 启用保存 Google 认证 Firebase 启用添加提供者按钮 Firebase 在添加电子邮件提供者后启用 Google 提供者
  6. 启用 Google 提供者 Firebase 启用 Google 认证
  7. 添加支持邮箱 Firebase 添加支持邮箱 Firebase 添加支持邮箱部分 2
  8. 修改 Public-facing name for project. Firebase 修改公共面向名称
  9. 点击 Save 按钮 Firebase 保存公共面向名称

Voilà,您现在已经启用了 Firebase 身份验证的 Google 登录 🎉

从 Firebase Google 登录 - 通用设置继续

标题:从 Firebase Google 登录 - 通用设置继续

如果您正在使用 Firebase Google 登录 - 通用设置 来规划身份验证和帐户流程,连接它到 使用 @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 的实现细节 双因素认证 对于双因素认证的实现细节