Manual Login
White label login works a little differently than other platforms in the sense that we first have to create a white label login session, which is then used to create a game session.
When the player is logged in, the SDK will save the token, so you don't have to send it to
StartWhiteLabelSession
Unity
Unreal
// 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.WhiteLabelLogin(email, password, rememberMe, response =>
{
if (!response.success)
{
Debug.Log("error while logging in");
return;
}
string token = response.SessionToken;
// Start game session here
});
