- Fixed discarded HTTP request error
| Downloads | 283 |
|---|---|
| Updated | 1 year ago |
| Released | 4 years ago |
| Identifier | Shoutbox |
| Numeric ID | 201 |
| Min. Openplanet | 1.27.13 |
Example plugin for the Auth API.
The source code is on Github, as well as the source code for the server.
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
// ...