code: @SuppressWarnings("deprecation")
      @Override
      public String getToken() throws AndroidAuthError {
          AccountManagerFuture<Bundle> future = mAccountManager.getAuthToken(mAccount,
                  mAuthTokenType, mNotifyAuthFailure, null, null);
          Bundle result;
          try {
              result = future.getResult();
          } catch (Exception e) {
              throw new AndroidAuthError("Error while retrieving auth token", e);
          }
          if (future.isDone() && !future.isCancelled()) {
              if (result.containsKey(AccountManager.KEY_INTENT)) {
                  Intent intent = result.getParcelable(AccountManager.KEY_INTENT);
                  throw new AndroidAuthError(intent, null);
              }
              authToken = result.getString(AccountManager.KEY_AUTHTOKEN);
          }
          if (authToken == null) {
              throw new AndroidAuthError("Got null auth token for type: " +
                      mAuthTokenType);
          }
  
          return authToken;
      }
docs: TODO: Figure out what to do about notifyAuthFailure