From 8948817d552ed0f000cc4b4b86e9051f0b9efb3a Mon Sep 17 00:00:00 2001 From: JustArchi Date: Mon, 6 Jun 2022 13:29:21 +0200 Subject: [PATCH] Misc 2FA enhancements --- ArchiSteamFarm/Steam/Security/MobileAuthenticator.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArchiSteamFarm/Steam/Security/MobileAuthenticator.cs b/ArchiSteamFarm/Steam/Security/MobileAuthenticator.cs index c110c43ea..5f232017c 100644 --- a/ArchiSteamFarm/Steam/Security/MobileAuthenticator.cs +++ b/ArchiSteamFarm/Steam/Security/MobileAuthenticator.cs @@ -45,7 +45,7 @@ public sealed class MobileAuthenticator : IDisposable { private const byte CodeInterval = 30; // For how many minutes we can assume that SteamTimeDifference is correct - private const byte SteamTimeTTL = 10; + private const byte SteamTimeTTL = 15; internal static readonly ImmutableSortedSet CodeCharacters = ImmutableSortedSet.Create('2', '3', '4', '5', '6', '7', '8', '9', 'B', 'C', 'D', 'F', 'G', 'H', 'J', 'K', 'M', 'N', 'P', 'Q', 'R', 'T', 'V', 'W', 'X', 'Y'); @@ -96,6 +96,8 @@ public sealed class MobileAuthenticator : IDisposable { return null; } + await LimitConfirmationsRequestsAsync().ConfigureAwait(false); + ulong time = await GetSteamTime().ConfigureAwait(false); if (time == 0) { @@ -110,8 +112,6 @@ public sealed class MobileAuthenticator : IDisposable { return null; } - await LimitConfirmationsRequestsAsync().ConfigureAwait(false); - // ReSharper disable RedundantSuppressNullableWarningExpression - required for .NET Framework using IDocument? htmlDocument = await Bot.ArchiWebHandler.GetConfirmationsPage(deviceID!, confirmationHash!, time).ConfigureAwait(false);