跳过内容

V7 迁移指南

GitHub

  • 版本 main
  • 版本 development V1版本的重要变化

标题:V1版本的重要变化

__CAPGO_KEEP_0__

__CAPGO_KEEP_0__ main __CAPGO_KEEP_0__

  • __CAPGO_KEEP_0__
  • Google 登录的访问权限范围
  • Google 登录的离线模式
    • 统一不同实现

对 Google 提供者的所有实现都进行了广泛的测试,以确保它们在不同平台之间表现一致

从 V0 主版本迁移到 V1
  • 从 V0 主版本迁移到 V1 MainActivity.java Android

    • 请遵循 Google 设置指南 __CAPGO_KEEP_0__. Specifically, please search for MainActivity.java
  • 请在 Google 控制台中添加重定向 URL。若未添加重定向 URL,Google 登录将无法工作。

    • 再次,请遵循 Google 设置指南. Specifically, please search for Authorized redirect URIs
  • 请确保您未在配置中使用 grantOfflineAccess 此功能在 V1 中不受支持。

  • 请确保在所有平台上验证身份工作。

  • Android MainActivity.java 的变化

    • 请遵循 Google 设置指南。具体来说,请在 Google Console 中 MainActivity.java。在 V1 中,你 必须 在主活动中 ModifiedMainActivityForSocialLoginPlugin 实现
  • 。这个变化对于插件正常工作至关重要

    • 请在 Google Console 中添加重定向 URL。否则,Google 登录将无法工作 再次,请遵循Google 设置指南 Authorized redirect URIs
  • 。具体来说,请在 Google Console 中

  • 请确保在所有平台上认证都能正常工作。

继续从 V7 迁移指南

标题:继续从 V7 迁移指南

如果您正在使用 V7 迁移指南 来规划认证和账户流程,连接它与 使用 @capgo/capacitor-social-login 为native能力的使用 @capgo/capacitor-social-login 为实现细节的使用 @capgo/capacitor-social-login 为实现细节的使用 @capgo/capacitor-passkey 为实现细节的使用 @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric 为 @capgo/capacitor-native-biometric 的实现细节 双因素认证 双因素认证的实现细节