Skip to content

Commit cb29172

Browse files
authoredAug 2, 2024··
docs: explain CTwoFactor_AddAuthenticator_Request's version field (#408)
1 parent 6daa700 commit cb29172

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

‎steamguard/src/accountlinker.rs

+4
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@ where
5555
req.set_steamid(steam_id);
5656
req.set_sms_phone_id("1".to_owned());
5757
req.set_device_identifier(self.device_id.clone());
58+
// Currently, the version value determines what `EAuthSessionGuardType` values are allowed during the login process.
59+
// Version 2 allows `EAuthSessionGuardType::k_EAuthSessionGuardType_DeviceConfirmation`, where version 1 does not.
60+
// However, the device confirmation auth guard does not emit a typical 2fa confirmation, so it doesn't show up when running `steamguard confirm`.
61+
req.set_version(1);
5862

5963
let resp = self
6064
.client

0 commit comments

Comments
 (0)
Please sign in to comment.