Create a New White Label User

Before we can register a session in the game, a user must first be created.

Passwords must be at least 8 characters long.

// 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 sign up button.
string email = "[email protected]";
string password = "password here";
LootLockerSDKManager.WhiteLabelSignUp(email, password, (response) =>
{
    if (!response.success)
    {
        Debug.Log("error while creating user");

        return;
    }

    Debug.Log("user created successfully");
});

Last updated