login
.login() is used to generate a session ID for an account
Last updated
Was this helpful?
.login() is used to generate a session ID for an account
Last updated
Was this helpful?
Was this helpful?
.login(username, password)
Generate a session ID for an account
Parameter
Type
Required
Description
username
string
true
The username of the account you want to access
password
string
true
The password of the account you want to access
Example:
// Dependencies
const CubedCraft = require('cubed-api');
// Account Details
const username = 'ACCOUNT_USERNAME';
const password = 'ACCOUNT_PASSWORD';