login
.login() is used to generate a session ID for an account
// Dependencies
const CubedCraft = require('cubed-api');
// Account Details
const username = 'ACCOUNT_USERNAME';
const password = 'ACCOUNT_PASSWORD';
// Defining The Session ID Variable
var sessionID;
// Logging Into The Account
CubedCraft.login(username, password).then(ses => sessionID = ses);Last updated