LibreAuth

Unity SDK

Unity 2021+ / C# · LibreAuth native client · Protocol v2 available (Enterprise)

Unity Unity 2021+ / C#
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

LibreAuthV2 + Authority + SessionGate + Ops*/Hardening · Boot before Init · AssertLicensed before gameplay · NuGet NSec + BouncyCastle · /api/v2/

  1. Credentials: name + ownerid (10 characters)
  2. API URL: https://libreauth.nutexe.dev/api/1.3/
  3. Source: csharp/LibreAuthV2.cs
  4. Ed25519 key: from init → Response Signing
  5. Test: Live API · Init docs

Install / Dependencies

Terminal
# Import LibreAuthV2.cs · Enterprise URL /api/v2/

Code Example

Unity
SessionGate.Boot(19079);
var init = await app.InitAsync();
SessionGate.OnInit(init);
await app.LicenseAsync(key, SystemInfo.deviceUniqueIdentifier);
SessionGate.MarkLicensed();

Protocol v2 (Enterprise)

INFO
Requires Enterprise plan. Endpoint https://libreauth.nutexe.dev/api/v2/. Guide: API Protocol v2.

Source: csharp/LibreAuthV2.cs

Unity · v2
SessionGate.Boot(19079);
var init = await app.InitAsync();
SessionGate.OnInit(init);
await app.LicenseAsync(key, SystemInfo.deviceUniqueIdentifier);
SessionGate.MarkLicensed();