LibreAuth Nut.exe Visit Website

React SDK

React 18+ · LibreAuth native client

React React 18+
POST https://libreauth.nutexe.dev/api/1.3/

Setup Guide

Import libreauth.js · set REACT_APP_API_URL in .env

  1. Panel → Manage Applications → copy name + ownerid
  2. API URL: https://libreauth.nutexe.dev/api/1.3/
  3. Source: js/libreauth.js
  4. Ed25519 key: /health · Response Signing
  5. Test: Live API · Init docs

Install / Dependencies

Terminal
npm i
# Import sdk/js/libreauth.js

Code Example

React
import LibreAuth from './libreauth.js';
const app = new LibreAuth('AppName', 'OWNER_ID_10', '1.0', process.env.REACT_APP_https://libreauth.nutexe.dev/api/1.3/);
await app.Init();