Epic Games Reconcile Lambda
Epic Games Reconcile lambda
This lambda reconciles a user in conjunction with an Epic Games 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 the following parameters. The parameters that the lambda is passed are:
-
user
- the FusionAuth User object. You can modify this, except theemail
orusername
attribute may not be modified after the user has been linked. -
registration
- the FusionAuth UserRegistration object. You can modify this. -
userInfo
- data returned by the Epic Games Account API. This is read-only. -
accessToken
- the JSON payload returned by the Epic Token API. This is read-only.
The two FusionAuth objects are well documented here in the User API and Registration API documentation. The idToken
may contain various user claims depending upon the user’s Epic Games configuration.
Assigning the lambda
Once a lambda is created, you may assign it to the Epic Games identity provider in the IdP configuration.
Navigate to
and select your existing Epic Games configuration or click and select Epic Games if it has not yet been configured.Feedback
How helpful was this page?
See a problem?
File an issue in our docs repo
Have a question or comment to share?
Visit the FusionAuth community forum.