Skip to main content
Version: 5.7.0

MergeAppleIdentity

Merge the profile associated with the provided Sigh in with Apple 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

Method Parameters

ParameterDescription
appleIdThe Apple ID of the user
authenticationTokenThe validated token from the Sign in with Apple SDK (that will be further validated when sent to the brainCloud service)

Usage

http://localhost:3000
string appleId = "someId";
string token = "someToken";

_bc.IdentityService.MergeAppleIdentity(
appleId,
token,
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 Sign in with Apple identity for a profile.