Example #1
0
 /// <inheritdoc />
 public async Task UnlinkSteamAsync(ISession session, string token)
 {
     var request = new ApiAccountSteam {
         Token = token
     };
     await _apiClient.UnlinkSteamAsync(session.AuthToken, request);
 }
Example #2
0
        /// <inheritdoc />
        public async Task <ISession> AuthenticateSteamAsync(string token)
        {
            var request = new ApiAccountSteam {
                Token = token
            };
            var resp = await _apiClient.AuthenticateSteamAsync(ServerKey, string.Empty, request);

            return(Session.Restore(resp.Token));
        }
Example #3
0
        /// <inheritdoc />
        public async Task <ISession> AuthenticateSteamAsync(string token, string username = null, bool create = true)
        {
            var request = new ApiAccountSteam {
                Token = token
            };
            var resp = await _apiClient.AuthenticateSteamAsync(ServerKey, string.Empty, request, create, username);

            return(Session.Restore(resp.Token, resp.Created));
        }