Its pretty simple community.login({ "accountName": 'name', "password": 'password', "twoFactorCode": SteamTotp.generateAuthCode('shared_secret'), "captcha": '' }, function(err, sessionID, cookies, steamguard) { community.startConfirmationChecker(10000, "identity_secret"); }); EDIT: The listeners community.on('newConfirmation', function (confirmation ) { console.log('here'); console.log('confirmation'); console.log(confirmation); }); community.on('confKeyNeeded', function (tag, callback) { console.log('here2'); console.log('tag'); console.log(tag); console.log('callback'); console.log(callback); }); I read in the documentation i need the confKeyNeeded to do anything with this, but it never goes in the event.