GenAuth DocsDocuments
Concepts
User Guide
Development Integration
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Concepts
User Guide
Development Integration
Metadata
Development Integration
Multi-tenant (beta)
Console Documentation
Multi-tenant Console
Tenant Console
Saas Application Demo
Old version
User Guide
  • Quick Start

  • Authentication

  • Access Control

  • Authorization

  • Adaptive MFA

  • User Account Management

    • User Field Definitions
    • Admin Create Account
    • Manage User Accounts
    • Link Accounts
    • View Login History
    • View User Geolocation
    • Enhance Account Security
    • Manage Login Sessions
    • Control Application Access
    • User Group Management
    • Invitation Management
  • User Directory Management

  • Applications

  • Become a Federation Authentication Identity Provider

  • Connect External Identity Providers (IdP)

  • WeChat Ecosystem Full Scenario Capabilities

  • Migrate Users to GenAuth

  • Security Settings

  • Branding

  • Automation

  • Audit Logs

  • Setting

  • FAQ

  1. User Guide
  2. /
  3. User Account Management
  4. /
  5. Link Accounts

¶ Bind account

Update time: 2025-04-11 11:21:15
Edit

You may encounter such a scenario: your user registered an account with a mobile phone number and registered another account with WeChat. Now you want to bind the WeChat account to the mobile phone account, so that when the user logs in with WeChat in the future, he will log in to the mobile phone account and return the information of the mobile phone account.

You can bind the user's social account to his main account (mobile phone, email account) by calling the following interface:

POST
https://core.genauth.ai/api/users/link

Bind social account to main account

If you want to bind a social account to a main account, the end user must provide the credentials of the social account and the credentials of the main account to prove that he is the owner of these two accounts, and then bind them.

Headers
Content-Type
REQUIRED
string

application/x-www-form-urlencoded

Form Data Parameters
primaryUserToken
REQUIRED
string

Primary Account Token

secondaryUserToken
REQUIRED
string

Social Account Token

200: OK
{
  "code": 200,
  "message": "Binding Successful"
}

After completing the binding of the social account, the data corresponding to the original social account will be deleted, and you will not be able to log in to the original social account again.

Previous article: Manage User Accounts Next article: View Login History

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.