Skip to content

Commit

Permalink
docs: explain CTwoFactor_AddAuthenticator_Request's version field (
Browse files Browse the repository at this point in the history
  • Loading branch information
dyc3 authored Aug 2, 2024
1 parent 6daa700 commit cb29172
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions steamguard/src/accountlinker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ where
req.set_steamid(steam_id);
req.set_sms_phone_id("1".to_owned());
req.set_device_identifier(self.device_id.clone());
// Currently, the version value determines what `EAuthSessionGuardType` values are allowed during the login process.
// Version 2 allows `EAuthSessionGuardType::k_EAuthSessionGuardType_DeviceConfirmation`, where version 1 does not.
// However, the device confirmation auth guard does not emit a typical 2fa confirmation, so it doesn't show up when running `steamguard confirm`.
req.set_version(1);

let resp = self
.client
Expand Down

0 comments on commit cb29172

Please sign in to comment.