Twitch Reconcile Lambda

Twitch Reconcile lambda

This lambda reconciles a user in conjunction with a Twitch IdP.

When you create a new lambda using the FusionAuth UI we will provide you an empty function for you to implement.

If you are using the API to create the lambda you will need to ensure your function has the following signature:

function reconcile(user, registration, userInfo) {
  // Lambda code goes here

This lambda must contain a function named reconcile that takes three parameters. The parameters that the lambda is passed are:

The two FusionAuth objects are well documented here in the User API and Registration API documentation. The userInfo may contain various user claims depending upon the user’s Twitch configuration.

Assigning the lambda

Once a lambda is created, you may assign it to the Twitch identity provider in the IdP configuration.

Navigate to Settings -> Identity Providers and select your existing Twitch configuration or click Add provider and select Twitch if it has not yet been configured.