Gamebase SDK for Unity 2.69.0
Toast Gamebase Platform
Loading...
Searching...
No Matches

◆ 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 RemoveMappingSample()
{
Gamebase.RemoveMapping(GamebaseAuthProvider.XXX, (error) =>
{
if (Gamebase.IsSuccess(error) == true)
{
Debug.Log("RemoveMapping succeeded.");
}
else
{
// Check the error code and handle the error appropriately.
Debug.Log(string.Format("RemoveMapping failed. error is {0}", error));
}
});
}
static void RemoveMapping(string providerName, GamebaseCallback.ErrorDelegate callback)
Forcibly trying to map the currently authenticated user identifier of Gamebase with the credential of...
Definition Gamebase.cs:1423
The Gamebase class is core of Gamebase service.
Definition Gamebase.cs:11