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
- 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).
- The launcher starts your game with
-ReanAuthCode=rlc_…. The code is single-use and expires after 5 minutes. - Your game exchanges it at the token endpoint.
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_xxxxxxxxxxxxxxxxxxxxxxxxif (Rean->WasStartedByLauncher())
{
Rean->SignInWithLauncher(OnDone);
}
else
{
Rean->RestoreSession(OnRestored); // then device sign-in if that fails
}