AutherBeta
Documentation

Installation

Add the Auther backend SDK to your Node.js server to verify end-user tokens on every request.

Supported runtimes

Node.js ≥ 18
PythonSoon
GoSoon
RubySoon
PHPSoon
RustSoon

Install

bash
npm install @auther-sdk/node

Initialise

Create one Auther instance per project and export it. The endpoint is auto-detected — localhost:4000 when DEV_ENV=development, production otherwise.

typescript
import { Auther } from '@auther-sdk/node';

export const auther = new Auther({
  clientId:     process.env.AUTHER_CLIENT_ID!,
  clientSecret: process.env.AUTHER_CLIENT_SECRET!,
});

Environment variables

Store your credentials in environment variables — never hardcode secrets.

bash
# .env
AUTHER_CLIENT_ID=req_live_xxxxxxxxxxxxxxxx
AUTHER_CLIENT_SECRET=sk_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Zero dependencies

The SDK uses Node's built-in https module. No extra runtime packages required.