mirror of
https://github.com/Govor-team/Govor.git
synced 2026-07-21 19:54:55 +00:00
rework console client
This commit is contained in:
@@ -30,8 +30,9 @@ namespace Govor.ConsoleClient.Commands
|
||||
sharedClient.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", authToken);
|
||||
var friendsClient = new FriendsClient(sharedClient);
|
||||
|
||||
// Re-initialize services in BaseCommand with the new FriendsClient
|
||||
InitializeServices(friendsClient, HttpClientService, GetAuthToken, SetAuthToken, InitializeHubConnectionAsync, HubConnection);
|
||||
|
||||
|
||||
Program.UpdateFriendsClient(friendsClient); // <-- единственный нужный вызов
|
||||
|
||||
await InitializeHubConnectionAsync();
|
||||
Console.WriteLine("[Успех] Вход выполнен. Токен сохранен.");
|
||||
|
||||
Reference in New Issue
Block a user