JavaScript SDK
Node.js / BFF (not browser login) · LibreAuth native client · Protocol v2 available (Enterprise)
JavaScript
Node.js / BFF (not browser login)
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/
- Credentials: name + ownerid (10 characters)
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
js/libreauth.js - Ed25519 key: from
init→ Response Signing - 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');
More Links
- ← All Client SDKs
- 1.x source: View libreauth.js
- Protocol v2: View libreauth-v2.js · docs
- Interactive API docs
- Response Signing