Jump to content
McKay Development

help with loginKey write invalid password

Recommended Posts

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);
            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.on('loginKey', function(key) {
  var out = '{"loginKey":"'+key+'"}';
   fs.writeFile('login_'+botNO+'.json', out, function(err){
      if(err) {
      } else {
         console.log('[LOGIN] Saved loginKey to \'login_'+botNO+'.json\'');


[18:16:09] - [LOG] Start bot.

[LOGIN] Please sign in!

[18:16:10] - [bOT] Guard Request

[18:16:40] - [LOG] logged in as client

[ 'sessionid=xxxxxxxxxxx',


  'steamLoginSecure=xxxxxxxxxxx' ]

loginKey: xxxxxxxxxxx

[LOGIN] Saved loginKey to 'login_bot_1.json'

[18:16:50] - [ERROR] steam errror : LogonSessionReplaced

[18:16:58] - [LOG] Start bot.

[LOGIN] Login with saved credentials

[18:16:58] - [ERROR] invalid password


Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...