### Proposal Details Microsoft and Google seems to force the switch from [Basic authentication](https://learn.microsoft.com/en-us/exchange/clients-and-mobile-in-exchange-online/deprecation-of-basic-authentication-exchange-online) to SASL XOAUTH2: https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth https://developers.google.com/gmail/imap/xoauth2-protocol Implementing the protocol is quite simple, maybe we can add it to the standard library
Proposal Details
Microsoft and Google seems to force the switch from Basic authentication to SASL XOAUTH2:
https://learn.microsoft.com/en-us/exchange/client-developer/legacy-protocols/how-to-authenticate-an-imap-pop-smtp-application-by-using-oauth
https://developers.google.com/gmail/imap/xoauth2-protocol
Implementing the protocol is quite simple, maybe we can add it to the standard library