Gamebase SDK for Unity  2.2.0
Toast Gamebase Platform

◆ AddMapping() [2/3]

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

There is information which must be included for mapping with some IdPs.

In order to set such necessary information, this API is provided. You can enter those information to additionalInfo in the dictionary type.

Since
Added 1.4.0.
Parameters
providerNameThe providerName which is authentication provider.
additionalInfoThe additionalInfo which is additional information using for mapping.
callbackCallbacks the results of mappings, returns the authentication token as a result of mappings.

Example Usage :

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