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

Use libreauth_v2.lua · host crypto + aead_open hook · ForceAdopt · prefer BFF

  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 initResponse 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 LibreAuthV2 = require 'libreauth_v2'
local auth = LibreAuthV2.new({ name='AppName', owner_id='OWNER_ID_10', url='https://host/api/v2/' })
auth:init()

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 LibreAuthV2 = require 'libreauth_v2'
local auth = LibreAuthV2.new({ name='AppName', owner_id='OWNER_ID_10', url='https://host/api/v2/' })
auth:init()