authenticateWithOAuth2 method

Future<void> authenticateWithOAuth2(
  1. String user,
  2. String accessToken
)

Logs the user in with the given user and accessToken via OAuth 2.0 using the AUTH XOAUTH2 mechanism.

Implementation

Future<void> authenticateWithOAuth2(String user, String accessToken) async {
  await sendCommand(PopAuthXOAuth2Command(user, accessToken));
  isLoggedIn = true;
}