Skip to content

Commit

Permalink
small fixs
Browse files Browse the repository at this point in the history
  • Loading branch information
natsurainko committed Jun 26, 2024
1 parent 3869d41 commit 3575577
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand All @@ -40,7 +39,7 @@ public Task<MicrosoftAccount> RefreshAsync(MicrosoftAccount account)
=> _microsoftAuthenticator.RefreshAsync(account);

public Task<YggdrasilAccount[]> 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);
Expand Down

0 comments on commit 3575577

Please sign in to comment.