auth method

Future<bool> auth(
  1. String password
)

Sends the authentication password to the server. Returns true, if the password matches, otherwise false.

Implementation

Future<bool> auth(String password) async {
  final result = await tier1.auth(password);
  if (result is RespSimpleString) {
    return result.payload == 'OK';
  } else {
    return false;
  }
}