Cannot connect to IMAP and SMTP using OAuth2.0 to Exchange Online

Last week the support for IMAP and SMTP using OAuth2.0 has been announced.Following the instruction, I added the required API permissions to Azure App..