GenAuth DocsDocuments
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
AgentAuth
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
  • Single Page Web Application

  • Mobile and Client Applications

    • Android

    • C#

    • Flutter

      • Quick Start
      • APIs

        • 核心认证 API
        • 标准协议 API
        • 多因素认证 API
        • 扫码认证 API
        • 社会化登录 API
      • Private Deployment
    • iOS

    • React Native
  • Standard Web Application

  • Framework Integration

  • Others

  1. Development Integration
  2. /
  3. Mobile and Client Applications
  4. /
  5. Flutter
  6. /
  7. APIs

  8. /
  9. 社会化登录 API

¶ 社会化登录 API

Update time: 2025-07-23 07:34:21
Edit

¶ 微信登录

通过微信 auth code 登录

static Future<AuthResult> loginByWechat(String connId, String code) async

参数

  • connId 在 GenAuth 的控制台获取的 social connection 配置
  • code auth 微信返回的 auth code

示例

AuthResult result = await AuthClient.loginByAccount("connId", "code");

¶ 支付宝登录

通过支付宝 auth code 登录

static Future<AuthResult> loginByAlipay(String connId, String code) async

参数

  • connId 在 GenAuth 的控制台获取的 social connection 配置
  • code 支付宝返回的 auth code

示例

AuthResult result = await AuthClient.loginByAlipay("connId", "code");

¶ 苹果登录

通过苹果 auth code 登录

static Future<AuthResult> loginByApple(String code) async

参数

  • code auth 苹果返回的 auth code

示例

AuthResult result = await AuthClient.loginByApple("code");
Previous article: 扫码认证 API Next article: Private Deployment
  • 微信登录
  • 支付宝登录
  • 苹果登录

User identity management

Integrated third-party login
Customized authentication process

Enterprise internal management

Single sign-on
Multi-factor authentication
Permission management

Developer

Development Documentation
GitHub (opens new window)

Company

official@genauth.ai
16th Floor, Building B, Beichen Century Center, Chaoyang District, Beijing (Total)
Room 406, 4th Floor, Block B, No. 200, Tianfu Fifth Street, High-tech Zone, Chengdu (Branch)

© Beijing Steamory Technology Co., Ltd.