Official JavaScript/Node.js client library for the AuthVaultix authentication platform.
Integrate license-based user authentication into your Node.js apps in minutes β with HWID binding, subscription tracking, and a simple interactive CLI.
- π License Key Authentication β Authenticate users directly with a license key
- π€ Username / Password Login β Traditional credential-based login
- π User Registration β Register new users with a license key
- π₯οΈ HWID Binding β Hardware ID (Windows SID) is auto-captured and bound to sessions
- π¦ Subscription Tracking β View active subscriptions, expiry dates, and time remaining
- β‘ Async/Await Support β Fully promise-based, modern JavaScript (ES Modules)
- π₯οΈ Interactive CLI β Ready-to-use terminal menu for quick testing
authvaultix-js/
βββ src/
β βββ authvaultix.js # Core AuthVaultix SDK class
β βββ main.js # Interactive CLI example
βββ package.json
βββ run.bat # Quick launcher for Windows
βββ README.md
- Node.js v18 or higher
- An account on AuthVaultix
- Your App Name, Owner ID, Secret, and Version from your dashboard
git clone https://github.com/AuthVaultix-javascript-Example-main.git
cd authvaultix-jsnpm installOpen src/main.js and replace the config values with your own from the AuthVaultix dashboard:
const AuthVaultixApp = new AuthVaultix(
"YourAppName", // App name from dashboard
"your_ownerid", // Owner ID from dashboard
"your_secret", // Secret key from dashboard
"1.0" // App version
);
β οΈ Never commit your realsecretorowneridto a public repository. Use environment variables for production use.
Option A β npm:
npm startOption B β Windows Batch File:
run.bat
When you run the app, you'll see an interactive menu:
Connecting...
Initialized Successfully!
[1] Login
[2] Register
[3] License Login
[4] Exit
Choose option:
Username: john
Password: β’β’β’β’β’β’β’β’
Logged in!
=== User Data ===
Username: john
IP: 192.168.x.x
HWID: S-1-5-21-XXXXXXXXX
Created: 5/1/2026, 10:00:00 AM
Last Login: 5/4/2026, 5:00:00 PM
Subscriptions:
[1] Premium | Expiry: 6/4/2026, 5:00:00 PM | Timeleft: 30d 0h 0m
Username: newuser
Password: β’β’β’β’β’β’β’β’
License: XXXX-XXXX-XXXX-XXXX
Registered Successfully!
License: XXXX-XXXX-XXXX-XXXX
License Login Successful!
Creates a new AuthVaultix client instance.
| Parameter | Type | Description |
|---|---|---|
appName |
string |
Your app name on AuthVaultix |
ownerId |
string |
Your owner ID |
secret |
string |
Your app secret |
version |
string |
Your app version string |
Initializes a session with the AuthVaultix API. Must be called before any other method.
await AuthVaultixApp.Init();Authenticates a user with username and password. HWID is automatically captured and sent.
Registers a new user account using a license key.
Authenticates directly using a license key (no username/password required).
Terminates the current session and logs the user out.
Validates if the current session is still active.
Upgrades a user's account/subscription with a new license key.
Triggers a password reset email for the given user.
Changes the authenticated user's username.
Property that holds the currently authenticated user's information (Username, IP, HWID, Subscriptions, etc.).
Fetches a user-specific server-side variable.
Sets a user-specific server-side variable for the current user.
Fetches a global server-side variable by its ID.
Downloads a secure file from the server. Returns an object containing success, message, and fileBytes (a Node.js Buffer).
Sends a log message to the AuthVaultix dashboard.
Retrieves a list of currently online clients.
Bans the currently authenticated user with a specific reason.
Checks if the current machine's HWID is blacklisted on the server.
Sends a message to a specific chat channel.
Retrieves chat history for a specific channel.
- Do NOT hardcode your
secretin public repositories. Use.envfiles or environment variables:import 'dotenv/config'; const AuthVaultixApp = new AuthVaultix( process.env.APP_NAME, process.env.OWNER_ID, process.env.SECRET, "1.0" );
- Add a
.envfile and list it in.gitignore:APP_NAME=YourApp OWNER_ID=abc123 SECRET=your_secret_here
| Package | Version | Purpose |
|---|---|---|
| axios | ^1.7.7 |
HTTP requests to AuthVaultix API |
| Platform | Supported |
|---|---|
| Windows | Full (HWID via Windows SID) |
| Linux | Full (HWID via /etc/machine-id) |
| macOS | Full (HWID via IOPlatformSerialNumber) |
HWID detection is handled automatically based on the OS platform using
os.platform().
Contributions, issues, and feature requests are welcome!
- Fork the repository
- Create your branch:
git checkout -b feature/my-feature - Commit your changes:
git commit -m 'Add my feature' - Push to branch:
git push origin feature/my-feature - Open a Pull Request
This project is licensed under the MIT License β see the LICENSE file for details.
Made with β€οΈ for the AuthVaultix ecosystem
β Star this repo if you found it useful!