Consult with the Treasure team to gain access to a pre-release version of the Treasure Launcher.

Games that are distributed via the Treasure Launcher, do not need to authenticate users via the Treasure Connect flow.

The TDK will automatically detect if the user is using the Treasure Launcher and will use the Treasure Launcher’s authenticated account automatically.

Public members

Assets/Treasure/TDK/Runtime/Identity/TDK.Identity.cs
public string Address;
public string AuthToken;
public bool IsUsingTreasureLauncher;
public async Task StartUserSessionViaLauncher();

Usage

If IsUsingTreasureLauncher is true, call StartUserSessionViaLauncher() instead of StartUserSession().

using Treasure;

// Check if the user is using the Treasure Launcher
var _isUsingTreasureLauncher = TDK.Identity.IsUsingTreasureLauncher;

// Start a user session via the Treasure Launcher
if (_isUsingTreasureLauncher && !TDK.Identity.IsAuthenticated) {
  await TDK.Identity.StartUserSessionViaLauncher();
}