I'm using steam-totp to automate logging in like so... and it's prompting me for a steam guard code:
user.logOn({
accountName: 'user',
password: 'pass',
twoFactorCode: SteamTotp.generateAuthCode(this.shared_secret)
});I first used
user.createAccount()Then I used
user.enableTwoFactor()
and saved the response from calling enable two factor.
{ shared_secret: '***',
serial_number: '***',
revocation_code: '***',
uri: '***',
server_time: '***',
account_name: 'user',
token_gid: '***',
identity_secret: '***',
secret_1: '***=',
status: 1 }
I then finalized my two factor
user.finalizeTwoFactor(shared_secret, smsCode)
After this I logged into the steam mobile app - it prompted me for a steamguard code... so i clicked send SMS code to use this device and when I entered the code it allowed me to log into the steam mobile... I have a feeling that this overrode my enableTwoFactor details I saved earlier... Can anybody comment on this?