Skip to content

Start a White Label Session

White Label Login works a little differently from other platforms: you first create a White Label login session, which is then used to create a game session. Once the White Label account is logged in, the token is saved and used to create a game session.

The LootLocker SDKs provide a single method for the complete login flow. If you need to separate the steps, that's possible too — reach out to us for guidance on manual login.

Prerequisites

Log In and Start a Session

// Remember to use the LootLocker namespace in the top of your file.
using LootLocker.Requests;
// This code should be placed in a handler when user clicks the login button.
string email = "[email protected]";
string password = "password here";
bool rememberMe = true;
LootLockerSDKManager.WhiteLabelLoginAndStartSession(email, password, rememberMe, response =>
{
if (!response.success)
{
if (!response.LoginResponse.success) {
Debug.Log("error while logging in");
} else if (!response.SessionResponse.success) {
Debug.Log("error while starting session");
}
return;
}
// Handle Returning Player
});

Conclusion

You've started using LootLocker in your game with White Label Login. Next, review LootLocker's full feature set to decide which other features to implement.