From 35755777a5798f994dd48a0809ce4146b47463c7 Mon Sep 17 00:00:00 2001 From: natsurainko Date: Wed, 26 Jun 2024 20:50:17 +0800 Subject: [PATCH] small fixs --- Natsurainko.FluentCore | 2 +- .../Services/Accounts/AuthenticationService.cs | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Natsurainko.FluentCore b/Natsurainko.FluentCore index bf57160d..4342c160 160000 --- a/Natsurainko.FluentCore +++ b/Natsurainko.FluentCore @@ -1 +1 @@ -Subproject commit bf57160d3a14c587848184382fff1a2066b1efea +Subproject commit 4342c1600c70850ef479986289607c34c2af7c1f diff --git a/Natsurainko.FluentLauncher/Services/Accounts/AuthenticationService.cs b/Natsurainko.FluentLauncher/Services/Accounts/AuthenticationService.cs index e574acd9..cf39b0ef 100644 --- a/Natsurainko.FluentLauncher/Services/Accounts/AuthenticationService.cs +++ b/Natsurainko.FluentLauncher/Services/Accounts/AuthenticationService.cs @@ -13,7 +13,6 @@ internal class AuthenticationService // Authenticators // TODO: Move to config file and remove from source control private readonly MicrosoftAuthenticator _microsoftAuthenticator = new(MicrosoftClientId, MicrosoftRedirectUrl); - //private readonly MicrosoftAuthenticator _officialMicrosoftAuthenticator = new(MicrosoftClientId, MicrosoftRedirectUrl); private readonly OfflineAuthenticator _offlineAuthenticator = new(); @@ -40,7 +39,7 @@ public Task RefreshAsync(MicrosoftAccount account) => _microsoftAuthenticator.RefreshAsync(account); public Task RefreshAsync(YggdrasilAccount account) - => new YggdrasilAuthenticator(account.YggdrasilServerUrl).RefreshAsync(account); + => new YggdrasilAuthenticator(account.YggdrasilServerUrl, account.ClientToken).RefreshAsync(account); public OfflineAccount Refresh(OfflineAccount account) => _offlineAuthenticator.Refresh(account);