validate
.validate() allows you to login on an already existing session ID, this can be used to change account or to log someone in
// Dependencies
const CubedCraft = require('cubed-api');
// Account Details
const username = 'ACCOUNT_USERNAME';
const password = 'ACCOUNT_PASSWORD';
// Defining The Session ID Variable
const sessionID = 'SESSION_ID';
// Logging Into The Account
CubedCraft.validate(sessionID, username, password)Last updated