LibreAuth

JavaScript SDK

Node.js / BFF (not browser login) · LibreAuth native client · Protocol v2 available (Enterprise)

JavaScript Node.js / BFF (not browser login)
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

libreauth-v2.js · ops-bridge processCheckOps after check · ops-executor + hardening · full Windows ops parity · Node AEAD iv16 · BFF for browser · /api/v2/

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

Install / Dependencies

Terminal
# 1.x: libreauth.js
# v2: libreauth-v2.js (Node/BFF only) → /api/v2/

Code Example

JavaScript
const { LibreAuthV2 } = require('./libreauth-v2.js');
const app = new LibreAuthV2({ name: 'AppName', ownerId: 'OWNER_ID_10', url: 'https://host/api/v2/', bff: true });
await app.init();
await app.login('user', 'pass', 'HWID');

Quick Test

Test
node -e "const L=require('./libreauth.js'); ..."

Protocol v2 (Enterprise)

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

Source: js/libreauth-v2.js

JavaScript · v2
const { LibreAuthV2 } = require('./libreauth-v2.js');
const app = new LibreAuthV2({ name: 'AppName', ownerId: 'OWNER_ID_10', url: 'https://host/api/v2/', bff: true });
await app.init();
await app.login('user', 'pass', 'HWID');