跳过内容

Capgo 社交登录 __CAPGO_KEEP_0__ 仓库

GitHub

介绍

简介

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

设置步骤

设置步骤
  1. 请前往 console.cloud.google.com
  2. 选择您要使用的项目 Firebase 项目选择器
  3. 前往菜单 Authentication 点击
    1. protectedTokens build
    2. protectedTokens Authentication
    Firebase 认证菜单
  4. 点击 Get started 按钮 Firebase 开始使用按钮
  5. 选择 或者 Email/Password 和 Google 或 Google 仅 Firebase 选择 Email/密码和 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 保存公共面向名称

噢,已经成功启用了 Firebase Authentication 的 Google Sign-In!

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

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

如果您正在使用 Firebase Google 登录 - 通用设置 为了规划身份验证和账户流程,连接它 使用@capgo/capacitor社交登录 for the native capability in Using @capgo/capacitor-social-login @capgo/capacitor-社交登录 for the implementation detail in @capgo/capacitor-social-login @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey @capgo/capacitor-原生生物识别 for @capgo/capacitor-native-biometric 的實現細節 双因素认证 关于双因素认证的实现细节。