Launch tokens (game servers)Available
For games sold through the REAN store: your server checks that the connecting player launched the game from the REAN Launcher and owns it.
Flow
- The player presses Play; the launcher confirms they own the game.
- The game starts with
-LauncherToken=…: a signed token that expires after 10 minutes and works once. - The game sends the token to your server, which checks it with REAN before letting the player in.
POST
https://api.reanstudios.com/api/game/verify-launchcurl -X POST https://api.reanstudios.com/api/game/verify-launch \
-H "X-Game-Server-Key: $GAME_SERVER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"token":"eyJ2IjoxLCJqdGki…"}'{ "valid": true, "playerId": "4f9c…", "username": "nova", "productId": "voltium" }
{ "valid": false, "reason": "invalid_or_expired" }
{ "valid": false, "reason": "already_used" }