i'm using following code and my confirmation still says "waiting for mobile confirmation"
var SteamCommunity = require('steamcommunity');
var SteamCommunity = new SteamCommunity();
var SteamTotp = require('steam-totp');
var logOnOptions = {
'accountName': "winiar23",
'password': "zaqwsxcde",
'twoFactorCode': SteamTotp.generateAuthCode("XXXXXXXXXXXXXXXXXXXX=") //this line and the comma before it can be removed if you don't have mobile auth enabled, but I'm assuming you do if you plan to trade
};
var s = 'XXXXXXXXXXXXXXXXXXXXXX='; //get this in the intro!
//logs in via browser
SteamCommunity.login(logOnOptions, function(err, sessionID, cookies, steamguard) {
if (err) {
console.log("There was an error logging in! Error details: " + err.message);
process.exit(1); //terminates program
} else {
console.log("Successfully logged in as " + logOnOptions.accountName);
SteamCommunity.chatLogon();
}
SteamCommunity.startConfirmationChecker(12000, s );
});