View Source Code

Identities

Link Identity To User

Link a new identity and its associated data to a user. This is used for login and non-login identities.

Request

  • userToken
    string
  • info
    object
    • info.identityType
      string
    • info.identityId
      string
  • uniqueData
    object
  • additionalData
    object

Response

  • identityProviders
    array of objects
    • identityProviders.identityType
      string
    • identityProviders.identityId
      string

Usage

1. Install the module

2. Use this script

const data = await ctx.modules.identities.link({
  // Request body
});