/// <summary>
 /// Initializes a new instance of the IOTConnect.Common.Auth class.
 /// </summary>
 /// <param name="environmentCode">IotConnect Environment Code.</param>
 /// <param name="solutionKey">IotConnect Solution Key. Should be a valid Solution Key.</param>
 public Auth(string environmentCode, string solutionKey)
 {
     _envCode                = environmentCode;
     _solutionKey            = solutionKey;
     _ioTConnectAPIDiscovery = new IoTConnectAPIDiscovery();
     FlurlHttp.Configure(settings => settings.OnError = HandleFlurlErrorAsync);
 }