Microsoft announced a while back that they are going to end support for basic authentication in Exchange Online from Oct 13, 2020. This includes connecting via remote PowerShell.
Exchange - Connect via PowerShell using Modern Authentication
· 3 min read