code: def auth(self):
          
          response = requests.post(
              parse.urljoin(self.base_url, '/api/auth'),
              timeout=self.timeout,
              data={'username': self.username, 'password': self.password})
          response.raise_for_status()
          json = response.json()
          if 'jwt' not in json:
              raise ValueError("Not authorized: didn't receive token, check username or password.")
          self.jwt = json['jwt']
          return json
docs: Authenticate with the miner and obtain a JSON web token (JWT).