LibreAuth

React SDK

React 18+ via BFF only · LibreAuth native client · Protocol v2 available (Enterprise)

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

Setup Guide

Do not login from browser — exchange session via your BFF → /api/v2/

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

Install / Dependencies

Terminal
# Do not login in browser — see sdk/react/BFF.md → /api/v2/

Code Example

React
// Browser calls YOUR BFF only
const res = await fetch('/bff/session', { credentials: 'include' });

Protocol v2 (Enterprise)

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

Source: react/BFF.md

React · v2
// Browser calls YOUR BFF only
const res = await fetch('/bff/session', { credentials: 'include' });