The imapAuthXOAuth2 and imapAuthBearer
authentication methods are similar, but they are not interchangeable. Both
use an OAuth 2.0 bearer token to authenticate the client session, but they
differ in how the token is presented to the server. It is currently preferable
to use the XOAUTH2 method because it is more widely available and some
service providers do not yet support the OAUTHBEARER method.
Changing the value of the BearerToken property will
automatically set the current authentication method to use OAuth 2.0.