Cant generate code. System.FormatException-The input is not a valid Base-64
Closed this issue · 2 comments
kwicot commented
Failed to generate code. I get an exception
System.FormatException: "The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters."
Code
AccountDetail detail = Program.AccountsController.AccountsDetail[0];
string secret = detail.SteamRecoveryKey;
Debug.WriteLine($"Secret is '{secret}' ");
SteamAuth.SteamGuardAccount account = new SteamAuth.SteamGuardAccount() { SharedSecret = secret};
string code = account.GenerateSteamGuardCode();
Debug.WriteLine($"Code is {code}");
secret is correct R#####. Or am I confusing something and the secret should be different?
kwicot commented
kwicot commented
Oh, its my fall. Sorry