Gamebase SDK for Unity  2.2.1
Toast Gamebase Platform

◆ AddMapping() [3/3]

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

This game interface allows authentication to be made with SDK provided by IdP, before applying Gamebase AddMapping with provided access token.

Since
Added 1.4.0.
Parameters
credentialInfoThe credentialInfo which is credential of authentication provider.


Parameters
callbackMapping result callback, returns the authentication token as a result of mapping.

Example Usage :

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