MCPcopy
hub / github.com/spaceandtimefdn/SxT-Python-SDK / auth_keys

Method auth_keys

src/spaceandtime/sxtbaseapi.py:529–538  ·  view source on GitHub ↗

-------------------- Calls and returns data from API: auth/keys (get), which returns all keys for a valid token. Returns: bool: Success flag (True/False) indicating the api call worked as expected. object: Response information from the Space a

(self)

Source from the content-addressed store, hash-verified

527
528
529 def auth_keys(self):
530 """--------------------
531 Calls and returns data from API: auth/keys (get), which returns all keys for a valid token.
532
533 Returns:
534 bool: Success flag (True/False) indicating the api call worked as expected.
535 object: Response information from the Space and Time network, as list or dict(json).
536 """
537 success, rtn = self.call_api('auth/keys', True, SXTApiCallTypes.GET)
538 return success, rtn if success else [rtn]
539
540
541 def auth_addkey(self, user_id:str, public_key:str, challange_token:str, signed_challange_token:str, scheme:str = "ed25519"):

Callers

nothing calls this directly

Calls 1

call_apiMethod · 0.95

Tested by

no test coverage detected