View Source Code

Identities

Sign In or Sign Up With Identity

Sign in to a user with an identity, creating a new user if it fails.

Request

  • info
    object
    • info.identityType
      string
    • info.identityId
      string
  • uniqueData
    object
  • additionalData
    object
  • username
    optional string

Response

  • userToken
    string
  • userId
    string

Usage

1. Install the module

2. Use this script

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