setUserPass method

Future<void> setUserPass(
  1. String user,
  2. String pass
)

Don't use this method, you probably want to call setApiKey.

Authenticate yourself into our SDK. Prefer setApiKey. Note: After invoking setUserPass, all subsequent calls will be ignored until logout is invoked.

Implementation

Future<void> setUserPass(String user, String pass) async {
  if (_alreadyAuthenticated) {
    return;
  }
  await methodChannel.invokeMethod(
    "setUserPass",
    <String, dynamic>{
      'situmUser': user,
      'situmPass': pass,
    },
  );
  _alreadyAuthenticated = true;
}