geel9 / SteamAuth

A C# library that provides vital Steam Mobile Authenticator functionality
MIT License
278 stars 105 forks source link

SteamGuardAccount.FetchConfirmations() throws WGTokenInvalidException #36

Closed alex-jin closed 8 years ago

alex-jin commented 8 years ago

Hi, about half month ago, I am able to use FetchConfirmations to get confirmation list and accept those confirmations. But now FetchConfirmations can't work. could you please take a look? Thanks in advance.

alex-jin commented 8 years ago

I added SteamGuardAccount.Session.SteamLogin = SteamWeb.Token; SteamGuardAccount.Session.SteamLoginSecure = SteamWeb.TokenSecure;

before calling FetchConfirmations and problem solved.

Prosto-Sanja commented 8 years ago

hello, SteamGuardAccount.RefreshSession(); solved the problem, best luck guys!

mik13ST commented 8 years ago

If RefreshSession() does not solve the problem (returns false, because WebException) and you are executing the exe on RaspberryPi using Mono thru a PHP script (like I am :smiley: ), then you might be missing HTTPS (SSL) certificates. This can be ignored (since we write the code and know who to trust) by implementing method #1 from official Mono documentation guide to solving missing certificates.