Login
.login() is used to log into the session with an account
.login(username: string, password: string) : Promise<string>
Example
// Dependencies
const { Session }= require('cubed-session');
const session = new Session();
// 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