docs: def load_auth(configfile):
      """Get authentication data from the AUTH_CONF file."""
  
      logging.debug('Loading habitica auth data from %s' % configfile)
  
      try:
          cf = open(configfile)
      except IOError:
          logging.error("Unable to find '%s'." % configfile)
          exit(1)
  
      config = configparser.SafeConfigParser({'checklists': False})
      config.readfp(cf)
  
      cf.close()
  
      # Get data from config
      rv = {}
      try:
          rv = {'url': config.get('Habitica', 'url'),
                'checklists': config.get('Habitica', 'checklists'),
                'x-api-user': config.get('Habitica', 'login'),
                'x-api-key': config.get('Habitica', 'password')}
  
      except configparser.NoSectionError:
          logging.error("No 'Habitica' section in '%s'" % configfile)
          exit(1)
  
      except configparser.NoOptionError as e:
          logging.error("Missing option in auth file '%s': %s"
                        % (configfile, e.message))
          exit(1)
  
      # Return auth data as a dictionnary
      return rv