Misc bulletproofing against invalid codes

This commit is contained in:
JustArchi
2020-07-01 15:22:59 +02:00
parent 9718160aeb
commit 6ca4372d1b
3 changed files with 31 additions and 6 deletions

View File

@@ -35,7 +35,8 @@ using Newtonsoft.Json;
namespace ArchiSteamFarm {
[SuppressMessage("ReSharper", "ClassCannotBeInstantiated")]
internal sealed class MobileAuthenticator {
private const byte CodeDigits = 5;
internal const byte CodeDigits = 5;
private const byte CodeInterval = 30;
private const byte SteamTimeTTL = 24; // For how many hours we can assume that SteamTimeDifference is correct