Gamebase SDK for Unity 2.75.1 Toast Gamebase Platform

Loading...
Searching...
No Matches

## ◆ CancelLoginWithExternalBrowser()

static void CancelLoginWithExternalBrowser | ( |  | ) |
| static

Cancels the ongoing external browser login process.

1. Cancels the in-progress external browser login. (Ignored if no login is in progress or already completed)
2. The cancellation result is handled in the Login method callback. (GamebaseErrorCode.AUTH_LOGIN_CANCEL_FAILED)
3. This method is asynchronous as it's a cancellation request.

Example Usage :

Gamebase.Login(GamebaseAuthProvider.XXX, (authToken, error) =>
{
if (!Gamebase.IsSuccess(error) && error.code == GamebaseErrorCode.AUTH_LOGIN_CANCEL_FAILED)
{
// TODO: Handle the cancellation...
}
});
...
Gamebase.CancelLoginWithExternalBrowser();
Toast.Gamebase.Gamebase.Login
static void Login(string providerName, GamebaseCallback.GamebaseDelegate< GamebaseResponse.Auth.AuthToken > callback)
Try to authenticate by specifying an IdP type.
Definition: Gamebase.cs:611
Toast.Gamebase.Gamebase
The Gamebase class is core of Gamebase service.
Definition: Gamebase.cs:11