Start a White Label 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
});Last updated
Was this helpful?

