mirror of
https://github.com/DoctorMcKay/node-steamcommunity.git
synced 2025-03-14 15:00:07 +08:00
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:
parent
6c77c5231c
commit
53154043a3
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user