A nodejs wrapper for the auth.gg admin api
npm i authgg-admin-api
const AuthGG = require('authgg-admin-api')
const API = new AuthGG.API(authorisationkey)
const AuthGG = require('authgg-admin-api')
const API = new AuthGG.API(authorisationkey)
// gets all users
API.getAllUsers().then(data => {
console.log(data);
});
// changes user password
API.changeUserPass('username', 'password1').then(() => {
console.log('succesfully changed password');
})
// returns generated license based on parameters
API.generateLicense(30, 1, 1).then(data => {
console.log(data);
})
Fetches info of user.
Fetches list of all the users.
Fetch the current amount of users.
Delete the user from database.
Edit the user variable.
Change the user's password.
Fetches license info of a license.
Fetches list of all license.
Delete the license from database.
Marks the license as used.
Unmarks the license as used.
Create licenses based on parameters. Format, prefix and length are optional.
Fetch the current amount of licenses.
Fetch the HWID info of user.
Resets the HWID of user.