Gamebase SDK for Unity  2.2.2
Toast Gamebase Platform

◆ RemoveMapping()

static void RemoveMapping ( string  providerName,
GamebaseCallback.ErrorDelegate  callback 
)
static

Forcibly trying to map the currently authenticated user identifier of Gamebase with the credential of external authentication provider.

Remove mapping with a specific IdP. If IdP mapping is not removed, error will occur.
After mapping is removed, Gamebase processes logout of the IdP.

Since
Added 1.4.0.
Parameters
providerNameThe providerName which is authentication provider.
callbackCallbacks the result of removing the mapping.

Example Usage :

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