Handle Returning Users
Last updated
Last updated
We don't want a player to have to type in their email and password every time they start the game, so for this we can reuse the session token provided by the WhiteLabelLogin
call multiple times.
By default a session token is good for 24 hours, but if you send remember me to true
a session will last for 30 days. Remember that these sessions are disconnected from the game session, so you still want to create a game session every time the player opens your game.
The length of a remember session can be changed in platform settings for White Label Login.
When a player opens the game we first want to check if they have a previous session we can use:
Depending on the response from this code we can either show the login form and ask for email and password again or we can start a game session.
If the user wants to reset their password we can use the following example to send them an email with a link to a reset password page.
The page is hosted on LootLocker and will use the settings in for name and logo.
This requires that you have
Above is an example of how to implement password reset for a White Label user using blueprints in Unreal Engine. For an example you can copy and paste into your editor, .