code: def get_state(self, key):
          
          _data = self.state_db.get(key)
          if not _data:
              raise KeyError(key)
          else:
              return State().from_json(_data)
docs: Get the state connected to a given key.
  
          :param key: Key into the state database
          :return: A :py:class:´oidcservice.state_interface.State` instance