Gamebase SDK for Unity  1.8.0
Toast Gamebase Platform

◆ AddMapping() [1/3]

static void AddMapping ( string  providerName,
GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken >  callback 
)
static

Mapping the currently authenticated user identifier of Gamebase with another external authentication.

Since
Added 1.4.0.
Parameters
providerNameThe providerName which is authentication provider.
callbackMapping result callback, returns the authentication token as a result of mapping.

Example Usage :

public void AddMapping(string providerName)
{
Gamebase.AddMapping(providerName, (authToken, error) =>
{
if (Gamebase.IsSuccess(error))
{
Debug.Log("AddMapping succeeded.");
}
else
{
Debug.Log(string.Format("AddMapping failed. error is {0}", error));
}
});
}