mobile Guard and i want login to script without guard
function dologin(){
fs.readFile('./config.json', function(err, config_data){
var data = config_data.toString();
var config = JSON.parse(data);
client.setOption('promptSteamGuardCode', false);
if (fs.existsSync('login_'+botNO+'.json')) {
console.log('[LOGIN] Login with saved credentials');
var contents = fs.readFileSync('login_'+botNO+'.json');
login = JSON.parse(contents);
client.logOn({
accountName: config.bots_info[botNO].username,
loginKey: login.loginKey,
password: config.bots_info[botNO].password,
rememberPassword: true
});
} else {
console.log('[LOGIN] Please sign in!');
const logClient = {
accountName: config.bots_info[botNO].username,
password: config.bots_info[botNO].password,
rememberPassword: true
}
client.logOn(logClient);
};
})
}
client.on('loginKey', function(key) {
console.log(key);
var out = '{"loginKey":"'+key+'"}';
fs.writeFile('login_'+botNO+'.json', out, function(err){
if(err) {
console.log(err);
} else {
console.log('[LOGIN] Saved loginKey to \'login_'+botNO+'.json\'');
}
});
});