Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 1.28 KB

README.md

File metadata and controls

66 lines (49 loc) · 1.28 KB

Authon TypeScript SDK

Authon
Official TypeScript SDK for Authon — Software Licensing & Authentication Platform

Website • Docs • Discord • Status


Requirements

  • Node.js 18+ / Deno / Bun
  • Full TypeScript type safety

Installation

# Copy authon.ts into your project, or:
npx tsx example.ts

Quick Start

import { Authon } from './authon';

const auth = new Authon('your-app-id', 'your-api-key');
await auth.init();

const result = await auth.login('username', 'password');
if (result.success) {
  console.log(`Level: ${auth.level}`);
  console.log(`Subscription: ${auth.subscription}`);
}
await auth.logout();

Run Example

npx tsx example.ts
# or
deno run --allow-net example.ts
# or
bun run example.ts

Links

License

MIT