optionAuthenticate method

Future<Response> optionAuthenticate()

Executes the menu option to create a new channel

Implementation

Future<Response> optionAuthenticate() async {
  clear();
  print('Authenticate:');
  try {
    askEmail();
    askPassword();

    var response = await _userUC.authenticate(_email, _password);
    _jwt = response.body;
    _response = '$_jwt';
    return response;
  } catch (e) {
    _response = e.toString();
    throw ('authenticate');
  }
}