You need to open a ticket to get your private api key (too lazy to finish the profile page)
This project is an API Wrapper for Luauth.
- Setup Process
- Functions
- getApiKeyDetails
- whitelistIdentifier
- unwhitelistIdentifier
- unbanIp
- getDetails
- getIdentifiers
- createScript
- updateScript
- deleteScript
- getLoader
npm install luauth
const Luauth = require('luauth-core');
// Using Classes
const luauth = new Luauth("api_key"); // Your Luauth API Key comes here
// Using connect function
const luauth = Luauth.login("api_key"); // Your Luauth API Key comes here
luauth.getApiKeyDetails().then((res) => {
console.log(res.data) // Will log the details about the API key in the console.
// error status 401: invalid API key
})
luauth.whitelistIdentifier("YOUR SCRIPT ID", "konan", "IDENTIFIER OF USER (IPV4, IPV6, HWID)", 1662910175).then((res) => {
console.log(res.data) // Will log the status of the action to the console. ({ "success": true, "message": "User has been whitelisted!" })
// error status 400: { "success": false, "message": "Invalid script ID" }
})
luauth.unwhitelistIdentifier("YOUR SCRIPT ID", "IDENTIFIER OF USER (IPV4, IPV6, HWID)").then((res) => {
console.log(res.data) // Will log the status of the action to the console. (status: 200)
// error status 400: { "success": false, "message": "Identifier not whitelisted" }
})
luauth.unbanIp("YOUR SCRIPT ID", "IDENTIFIER OF USER (IPV4, IPV6, HWID)").then((res) => {
console.log(res.data) // Will log the status of the action to the console. (User has been unbanned)
})
luauth.getDetails("YOUR SCRIPT ID", "IDENTIFIER OF USER (IPV4, IPV6, HWID)").then((res) => {
console.log(res.data) // Will log details about users to the console
// error status 400: Invalid Script ID or Identifier
})
luauth.getIdentifiers("YOUR SCRIPT ID").then((res) => {
console.log(res.data) // Will log every whitelisted user to the console
// error status 400: Invalid Script ID
})
luauth.createScript(
"My Super Cool Script", // Enter a name you want the script to have
"print('troll')", // Enter the actual script
"https://discordwebhookblahblah", // Enter the webhook where you want logs to be sent to
"https://discordwebhookblahblah", // Enter the webhook where you want alerts to be sent to
true, // Define if free for all or not (free for all means the script is accessible for everyone and no one has to be whitelisted)
true, // If true Luauth wont print debug messages to the console
).then((res) => {
console.log(res.data) // Will log the status of the action to the console.
// error status 400: Missing parameters
// error status 500: Something went wrong while obfuscating, syntax error?
})
luauth.updateScript(
"YOUR SCRIPT ID" // Enter the ID Of your script her
"print('troll')", // Enter the actual script
"https://discordwebhookblahblah", // Enter the webhook where you want logs to be sent to
"https://discordwebhookblahblah", // Enter the webhook where you want alerts to be sent to
true, // Define if free for all or not (free for all means the script is accessible for everyone and no one has to be whitelisted)
true, // If true Luauth wont print debug messages to the console
).then((res) => {
console.log(res.data) // Will log the status of the action to the console.
// error status 400: Missing parameters
// error status 500: Something went wrong while obfuscating, syntax error?
})
luauth.deleteScript("YOUR SCRIPT ID").then((res) => {
console.log(res.data) // Will log the status of the action to the console.
// error status 400: Invalid Script ID
})
luauth.getLoader("YOUR SCRIPT ID").then((res) => {
console.log(res.data) // Will log the script loader to the console.
// error status 400: Invalid Script ID
})