Games started by the REAN LauncherComing with a launcher update

When the REAN Launcher starts your game, it passes a one-time code. Your game exchanges it for tokens: the player is signed in without typing anything.

How it works

  1. The player presses Play in the REAN Launcher. The first time, the launcher asks the player to allow your game (same consent as on the web).
  2. The launcher starts your game with -ReanAuthCode=rlc_…. The code is single-use and expires after 5 minutes.
  3. Your game exchanges it at the token endpoint.
bash
curl -X POST https://api.reanstudios.com/api/oauth/token \
  -d grant_type=urn:rean:params:oauth:grant-type:launcher_code \
  -d code=rlc_… \
  -d client_id=rean_xxxxxxxxxxxxxxxxxxxxxxxx
if (Rean->WasStartedByLauncher())
{
    Rean->SignInWithLauncher(OnDone);
}
else
{
    Rean->RestoreSession(OnRestored); // then device sign-in if that fails
}