Skip to main content
Version: 5.7.0

RefreshIdentity

Refreshes an identity for this player

ServiceOperation
identityREFRESH_IDENTITY

Method Parameters

ParameterDescription
externalIdUser ID
authenticationTokenPassword or client side token
authenticationTypeType of authentication

Usage

http://localhost:3000
string externalId = "846557642688";
string authenticationToken = "ghbiuhgvbiuhbiunbuibgin";
string authenticationType = "Facebook";
SuccessCallback successCallback = (response, cbObject) =>
{
Debug.Log(string.Format("Success | {0}", response));
};
FailureCallback failureCallback = (status, code, error, cbObject) =>
{
Debug.Log(string.Format("Failed | {0} {1} {2}", status, code, error));
};

_bc.IdentityService.RefreshIdentity(externalId, authenticationToken, authenticationType, successCallback, failureCallback);
JSON Response
{
"status": 200,
"data": {
"externalId": "758945465505",
"authenticationType": "Facebook"
}
}