Use updated AddAuthenticator parameters

The old way still seems to work, but this is what the official mobile app sends now
This commit is contained in:
Alex Corn 2023-11-10 20:50:12 -05:00
parent 6c77c5231c
commit 53154043a3
No known key found for this signature in database
GPG Key ID: E51989A3E7A27FDF

View File

@ -20,10 +20,10 @@ SteamCommunity.prototype.enableTwoFactor = function(callback) {
// TODO: Send this as protobuf to more closely mimic official app behavior
form: {
steamid: this.steamID.getSteamID64(),
authenticator_time: Math.floor(Date.now() / 1000),
authenticator_type: ETwoFactorTokenType.ValveMobileApp,
device_identifier: SteamTotp.getDeviceID(this.steamID),
sms_phone_id: '1'
sms_phone_id: '1',
version: 2
},
json: true
}, (err, response, body) => {