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

Method auth_validtoken

src/spaceandtime/sxtbaseapi.py:505–514  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

503
504
505 def auth_validtoken(self):
506 """--------------------
507 Calls and returns data from API: auth/validtoken, which returns information on a valid token.
508
509 Returns:
510 bool: Success flag (True/False) indicating the api call worked as expected.
511 object: Response information from the Space and Time network, as list or dict(json).
512 """
513 success, rtn = self.call_api('auth/validtoken', True, SXTApiCallTypes.GET)
514 return success, rtn if success else [rtn]
515
516
517 def auth_idexists(self, user_id:str ):

Callers 1

get_user_network_infoMethod · 0.80

Calls 1

call_apiMethod · 0.95

Tested by

no test coverage detected