LibreAuth

Lua SDK

FiveM / RedM (prefer BFF for auth) · LibreAuth native client · Protocol v2 available (Enterprise)

Lua FiveM / RedM (prefer BFF for auth)
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

authority.lua + session_gate.lua on host/BFF · prefer server-side license · AssertLicensed before features

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

Install / Dependencies

Terminal
-- Prefer BFF for login
-- v2: libreauth_v2.lua + host crypto hooks

Code Example

Lua
local Gate = require 'session_gate'
Gate.Boot(19079)
Gate.OnInit(auth:init())
Gate.MarkLicensed()
Gate.AssertLicensed()

Protocol v2 (Enterprise)

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

Source: lua/libreauth_v2.lua

Lua · v2
local Gate = require 'session_gate'
Gate.Boot(19079)
Gate.OnInit(auth:init())
Gate.MarkLicensed()
Gate.AssertLicensed()