LibreAuth

Go SDK

Go 1.20+ · LibreAuth native client · Protocol v2 available (Enterprise)

Go Go 1.20+
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

ClientV2 · authority.go · session_gate.go · ProcessCheckOps after Check · Boot/OnInit/MarkLicensed · NewGCMWithNonceSize(16) · /api/v2/

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

Install / Dependencies

Terminal
# 1.x: libreauth.go
# v2: libreauth_v2.go · set VerifySig → /api/v2/

Code Example

Go
libreauth.Boot(19079)
app := libreauth.NewV2("AppName", "OWNER_ID_10", "https://host/api/v2/", "")
libreauth.OnInit(app.Init())
app.License(key, hwid)
libreauth.MarkLicensed()

Quick Test

Test
go run main.go

Protocol v2 (Enterprise)

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

Source: go/libreauth_v2.go

Go · v2
libreauth.Boot(19079)
app := libreauth.NewV2("AppName", "OWNER_ID_10", "https://host/api/v2/", "")
libreauth.OnInit(app.Init())
app.License(key, hwid)
libreauth.MarkLicensed()