Shoutbox (Auth Example)

A plugin by Miss(Trusted developer)

Shoutbox (Auth Example)
Downloads 38
Updated 1 year ago
Released 1 year ago
Created 2 years ago
Numeric ID 201
Signed
Game Trackmania

NOTE: This plugin currently requires at least Openplanet 1.25.20, which currently only exists on the edge branch!


Example plugin for the Auth API.

The source code is on Github, as well as the source code for the server.

Basic example

The following is the most basic example for getting a token to validate with the Openplanet.dev backend API.

// Start the task to get the token from Openplanet
auto tokenTask = Auth::GetToken();

// Wait until the task has finished
while (!tokenTask.Finished()) {
  yield();
}

// Get the token
string token = tokenTask.Token();

// Send the token to our server
// ...