Jump to content
McKay Development

spazhead

Member
  • Posts

    2
  • Joined

  • Last visited

Posts posted by spazhead

  1. Hello all!

     

    I have seen a similar question here, but to my understanding, it wasn't answered.

    https://dev.doctormckay.com/topic/251-cant-make-a-simple-login-due-to-steamguardmobile/

     

    My code is as follows: 

            var diff = 0;
            SteamTotp.getTimeOffset(function(err, d, l) {
                diff = d;
            });
            console.log(diff);
    
            var code = SteamTotp.generateAuthCode(config.secret, diff);
            community.login({
                "accountName": config.username,
                "password": config.password,
                "twoFactorCode": code,
            }, function(err){
                if (err) {
                    console.log(err);
                    process.exit(1);
                }
                communityloggedin = true;
                console.log("Logged on to SteamCommunity with "+config.username);
            });
    
    

    Unfortunately, I get the error [Error: SteamGuardMobile]. The answer to the other question linked above had an answer but I failed to see the fix.

     

    Thanks for your time,

     

    Spazhead

     

×
×
  • Create New...