I used the example OAuth 1.0 with IMAP: https://www.limilabs.com/blog/oauth-with-imap
There is an error because "GetXOAuthKeyForImap" ist kein Member von "ISignedOAuth". I'vd looked in the Reference and ther is no Member. All other values are fine
Article was corrected. GetXOAuthKey should be used.
GetXOAuthKey
Don't use OAuth 1.0. Use OAuth 2.0:
https://www.limilabs.com/mail/samples#imap-gmail-oauth2
https://www.limilabs.com/mail/samples#imap-office365-exchange-oauth2