Gamebase SDK for Unity 2.75.1 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

  providerName | The providerName which is authentication provider.
  callback | Callbacks 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));
}
});
}
Toast.Gamebase.Gamebase.RemoveMapping
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:1452
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11