initEnvironmentAndGetJwt property

Future<String> get initEnvironmentAndGetJwt

Implementation

Future<String> get initEnvironmentAndGetJwt async {
  configItems = await ConfigService.getConfigItems();
  deviceId = await DeviceIdService.getDeviceId();
  ipLocal = await getLocalIpAddress();
  ipPublic = await getPublicIpAddress();
  platformInfo = getPlatformInfo();

  var jwt = await storage.read(key: "jwt");
  if (jwt == null) return "";
  return jwt;
}