Microsoft has fixed a known issue causing Microsoft 365 users to experience authentication issues when logging into desktop client apps like Microsoft Teams, OneDrive for Business, and Microsoft Outlook. The known issue is caused by the Windows 10 1909 KB5003169 cumulative update released last month as part of the May 2021 Patch Tuesday updates. Microsoft also recently shared a workaround for customers experiencing 0x8004de40 errors when attempting to log ino their OneDrive accounts. Customers are also seeing 0X80049d61 errors when trying to launch the OneDrive Store app.
Source: https://www.bleepingcomputer.com/news/microsoft/microsoft-fixes-issue-blocking-microsoft-teams-outlook-logins/

