Skip to main content
Version: 6.1.0

AttachEpicGamesIdentity

Attach the user's Epic Games credentials to the current profile.

ServiceOperation
identityATTACH
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.AttachEpicGamesIdentity(
epicAccountId,
authIdToken,
SuccessCallback, FailureCallback);
JSON Response
{
"status": 200,
"data": null
}
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.
40212MERGE_PROFILESReturned when trying to attach an identity type that would result in two profiles being merged into one (for instance an anonymous account and an Epic Games account).