O365 Oauth2 IMAP / POP3 Email

Does anyone have a way to retrieve email from o365 using OAuth2 ?

there is a setting with o365 to allow SMTP from thrid party. something called SMTP Relay

that need to configure through admin account before you start using that account.