Skip to content

Commit

Permalink
修复导致微软账户启动失败的Bug
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSpring114 committed Oct 2, 2024
1 parent 8afaa3a commit f4f0c45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WonderLab/Services/Auxiliary/AccountService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public async ValueTask<IEnumerable<YggdrasilAccount>> AuthenticateYggdrasilAsync
/// 异步验证
/// </summary>
public async ValueTask<MicrosoftAccount> AuthenticateMicrosoftAsync(Account account = default, Action<DeviceCodeResponse> action = default, CancellationTokenSource tokenSource = default) {
MicrosoftAuthenticator microsoftAuthenticator = new(CLIENT_ID);
MicrosoftAuthenticator microsoftAuthenticator = new(account as MicrosoftAccount, CLIENT_ID, true);

if (account is null) {
await microsoftAuthenticator.DeviceFlowAuthAsync(action, tokenSource);
Expand Down

0 comments on commit f4f0c45

Please sign in to comment.