loginWithAtsign method

Future loginWithAtsign(
  1. String atsign
)

Implementation

Future<dynamic> loginWithAtsign(String atsign) async {
  // if init was not called earlier, call here to initialize the http
  if (!initialized) {
    _init();
  }
  Map data = {'atsign': "$atsign"};

  String path = AppConstants.apiPath + AppConstants.authWithAtsign;

  var response = await postRequest(path, data);

  return response;
}