JavaScript SDK
Node.js / Browser · LibreAuth native client
JavaScript
Node.js / Browser
Setup Guide
Copy libreauth.js · set API URL in constructor
- Panel → Manage Applications → copy name + ownerid
- API URL:
https://libreauth.nutexe.dev/api/1.3/ - Source:
js/libreauth.js - Ed25519 key: /health · Response Signing
- Test: Live API · Init docs
Install / Dependencies
Terminal
npm init -y
# Copy sdk/js/libreauth.js
Code Example
JavaScript
const LibreAuth = require('./libreauth.js');
const app = new LibreAuth('AppName', 'OWNER_ID_10', '1.0', 'https://libreauth.nutexe.dev/api/1.3/');
await app.Init();
await app.Login('user', 'pass', 'HWID');
Quick Test
Test
node -e "const L=require('./libreauth.js'); ..."