A JavaScript/TypeScript client library for the Azuriom Auth API, enabling user authentication (including 2FA) on Azuriom-powered game servers. Version 1.1.1 is current, requires Node >=18, and is actively maintained. Unlike generic OAuth libraries, this is purpose-built for Azuriom's API, providing a simple AuthClient class with login/verify/logout methods and full TypeScript support.
npm install azuriom-authNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate AuthClient, perform login with 2FA support, and handle the AuthResult.
Use try-catch blocks around all API calls.
Pass URL without trailing slash: new AuthClient('https://example.com')Always pass email and password again when providing 2FA code.
Wrap the call in try/catch to handle network errors: try { const result = await client.login(...); } catch (e) { ... }Remove trailing slash from URL passed to AuthClient constructor: new AuthClient('https://example.com')Ensure correct import: import { AuthClient } from 'azuriom-auth' and install the package.No dependency data recorded yet.