Gamebase SDK for Unity  2.1.0
Toast Gamebase Platform

◆ AddMapping() [1/3]

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

Try mapping to another IdP while logged-in to a specific IdP.

If an IdP account to map has already been integrated to another account, return the AUTH_ADD_MAPPING_ALREADY_MAPPED_TO_OTHER_MEMBER (3302) error. Even if a mapping is successful, 'currently logged-in IdP' does not change. Mapping simply adds IdP integration.

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));
}
});
}