Go SDK
Go 1.20+ · LibreAuth native client · Protocol v2 available (Enterprise)
Go
Go 1.20+
Setup Guide
ClientV2 · authority.go · session_gate.go · ProcessCheckOps after Check · Boot/OnInit/MarkLicensed · NewGCMWithNonceSize(16) · /api/v2/
- Credentials: name + ownerid (10 characters)
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
go/libreauth.go - Ed25519 key: from
init→ Response Signing - 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()
More Links
- ← All Client SDKs
- 1.x source: View libreauth.go
- Protocol v2: View libreauth_v2.go · docs
- Interactive API docs
- Response Signing