Skip to main content
Version: 6.1.0

MergeEpicGamesIdentity

Merge the profile associated with the provided Epic Games credentials with the current profile.

NOTE: If using the BrainCloudWrapper, once the merge is complete you should call SetStoredProfileId in the BrainCloudWrapper with the profileId returned in the Merge call.

ServiceOperation
identityMERGE
note

Epic Games support was added to the C# (Unity) client library first. Check the release notes of your client library to confirm it is available on your platform.

Method Parameters​

ParameterDescription
epicAccountIdLocalUserId.ToString() retrieved from the EOS SDK Auth Interface's Login method. This is the Epic Account ID that will be attached to the user's profile, and it must match the sub claim of authIdToken.
authIdTokenThe ID token JWT (IdToken.Value.JsonWebToken) retrieved from the EOS SDK Auth Interface's CopyIdToken method. It is validated by the brainCloud server.

Usage​

http://localhost:3000
string epicAccountId = "0123456789abcdef0123456789abcdef";
string authIdToken = "idTokenFromEOS";

_bc.IdentityService.MergeEpicGamesIdentity(
epicAccountId,
authIdToken,
SuccessCallback, FailureCallback);
JSON Response
{
"data": {
"profileId": "f94f7e2d-3cdd-4fd6-9c28-392f7875e9df"
},
"status": 200
}
Common Error Code

Status Codes​

CodeNameDescription
40211DUPLICATE_IDENTITY_TYPEReturned when trying to attach an identity type that already exists for that profile. For instance you can have only one Epic Games identity for a profile.