Exemple #1
0
 // Token: 0x06005726 RID: 22310 RVA: 0x001E05B8 File Offset: 0x001DE9B8
 public static void SteamLogin(string authSessionTicket, Action <APIUser> onFetchSuccess = null, Action <string> onFetchError = null)
 {
     ApiCredentials.Clear();
     APIUser.ThirdPartyLogin("steam", new Dictionary <string, string>
     {
         {
             "steamTicket",
             authSessionTicket
         }
     }, delegate(string authToken, APIUser freshAPIUser)
     {
         ApiCredentials.SetAuthToken(authToken, "steam", SteamUser.GetSteamID().ToString());
         User.mCurrentNonApiUser = new User();
         User.mCurrentNonApiUser.Init(APIUser.CurrentUser);
         User.SetNetworkProperties();
         if (onFetchSuccess != null)
         {
             onFetchSuccess(freshAPIUser);
         }
     }, onFetchError);
 }