unlink

client.unlink({
  accessToken: string,
  identityId: string,
  // Optional fields
  fields: string,
})

About this command

Unlink social account from the current user. Return the updated user.

Examples

client.unlink({
  accessToken: 'eyJ0eXAiOiJKV1QiL...',
  identityId: 'facebook:123456789...'
})

Parameters

accessToken string

The authorization credential JSON Web Token (JWT) used to access the ReachFive API, less than five minutes old.

identityId string

The identity ID to remove.

fields string

The user fields to fetch in the response.

Defaults to id,name,email.

Response

Type: Promise[void]