# Authentication Samples

## Guest Login (LootLocker Identifier)

[Guest Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/guest-login.md) is the most basic type of authentication LootLocker provides as no identity verification is required by the player. This type of authentication is common in mobile games, game jam games, or for guest sessions and smaller games. LootLocker also supports [Platform Login](https://docs.lootlocker.com/players/authentication) and [White Label Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/white-label-login.md) authentication methods.

This sample can be found in our [SDK](https://docs.lootlocker.com/sdks#unity-sdk) under the name `1a - GuestLoginLootLockerIdentifier`

This SDK Sample demonstrates Guest Login in action where LootLocker provides the player identifier which is then stored in the PlayerPrefs file. Should the player delete the game, then they will lose access to their game profile.

### In-Engine

In this sample the Player ID displayed is the ID you are assigned by LootLocker when creating a session for the first time.

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-f01c39127e88daba0e93a98b0a18fb3472dbf680%2FGuestLogin.png?alt=media&#x26;token=e62b4356-e454-4af9-8455-61b4d71a001c" alt=""><figcaption></figcaption></figure>

### Web Console

The only web console configuration necessary for this sample is to enable [Guest Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/guest-login.md) located in Game Settings -> Platforms.

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-34c8c25c81f92c6399a7103f4402f87119894e63%2FGuestLogin_webConsole.png?alt=media&#x26;token=35c54216-28f4-49a3-b262-d2ca02c9e45f" alt=""><figcaption></figcaption></figure>

## Guest Login (Unique Identifier)

[Guest Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/guest-login.md) is the most basic type of authentication LootLocker provides as no identity verification is required by the player. This type of authentication is common in mobile games, game jam games, or for guest sessions and smaller games. LootLocker also supports [Platform Login](https://docs.lootlocker.com/players/authentication) and [White Label Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/white-label-login.md) authentication methods.

This sample can be found in our [SDK](https://docs.lootlocker.com/sdks#unity-sdk) under the name `1b - GuestLoginUniqueIdentifier`

This sample is similar to the previous Guest Login SDK Sample, however the unique identifier used in this sample is linked to the player's device instead of an identifier provided by LootLocker.

### In-Engine

In this sample the Player ID displayed is based on your device's unique identifier.

### Web Console

The only web console configuration necessary for this sample is to enable [Guest Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/guest-login.md) located in Game Settings -> Platforms.

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-34c8c25c81f92c6399a7103f4402f87119894e63%2FGuestLogin_webConsole.png?alt=media&#x26;token=35c54216-28f4-49a3-b262-d2ca02c9e45f" alt=""><figcaption></figcaption></figure>

## White Label Login

LootLocker's [White Label Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/white-label-login.md) system provides you with an out-of-the-box custom game account system where players can create an account for your game with their email address (or username) and password. This system includes email verification and password reset functionality. LootLocker also supports [Guest Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/guest-login.md) and [Platform Login](https://docs.lootlocker.com/players/authentication) authentication methods.

This sample can be found in our [SDK](https://docs.lootlocker.com/sdks#unity-sdk) under the name `5 - WhiteLabel`

This sample demonstrates both the new and existing user experience.

### In-Engine

As a `new user` you can create an account and will shortly thereafter receive an account verification email. Once you've created an account you can use the `existing user` fields to login to your account.

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-d5420f9969c6ff7193128b24a5e30c38f1b4e19b%2FWhiteLAbel.png?alt=media&#x26;token=22fa73f1-1172-491f-af1c-e0c6f235a23b" alt=""><figcaption></figcaption></figure>

### Web Console

[White Label Login](https://github.com/lootlocker/gitbook-sync/blob/main/players/authentication/white-label-login.md) is configured by navigating to Game Settings -> Platforms. In this menu you can select the name and reply-to email address used when a player creates an account as well as a few other settings.

<figure><img src="https://534367586-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MVu1MPzezO-NgvC98xh%2Fuploads%2Fgit-blob-1bed19985a53c8ff5edac3c6c1ecdb369ee4503c%2FWhiteLabel_webConsole.png?alt=media&#x26;token=9c977e93-6506-44b9-ab8d-baf46ec06f3e" alt=""><figcaption></figcaption></figure>
