Sometime i can login, but after reset and try few times, it's seem doesn't works anymore until next day or something like that, i am not sure
var steam = new SteamCommunity();
logOnOptions = {
"accountName": account_name,
"password": password,
"twoFactorCode": SteamTotp.getAuthCode(share_secret_hash)
};
steam.login(logOnOptions, function(err, sessionID, cookies, steamguard) {
if (err) {
console.log(`Steam login fail: ${err.message}`);
return;
}
console.log(`Logged into Steam: ${account_name} | Mobile app code: ${logOnOptions.twoFactorCode}`);
});
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
The log:
Logged into Steam: account_name | Mobile app code: CODE
Steam login fail: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
Sorry, that because of steamguard writeFile. CLOSE.