/// <inheritdoc /> public async Task UnlinkSteamAsync(ISession session, string token) { var request = new ApiAccountSteam { Token = token }; await _apiClient.UnlinkSteamAsync(session.AuthToken, request); }
/// <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)); }
/// <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)); }