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

Method auth_logout

src/spaceandtime/sxtbaseapi.py:493–502  ·  view source on GitHub ↗

-------------------- Calls and returns data from API: auth/logout, which invalidates Access_Token and Refresh_Token. Returns: bool: Success flag (True/False) indicating the api call worked as expected. object: Response information from the Spa

(self)

Source from the content-addressed store, hash-verified

491
492
493 def auth_logout(self):
494 """--------------------
495 Calls and returns data from API: auth/logout, which invalidates Access_Token and Refresh_Token.
496
497 Returns:
498 bool: Success flag (True/False) indicating the api call worked as expected.
499 object: Response information from the Space and Time network, as list or dict(json).
500 """
501 success, rtn = self.call_api('auth/logout', True)
502 return success, rtn if success else [rtn]
503
504
505 def auth_validtoken(self):

Callers 1

test_logoutFunction · 0.95

Calls 1

call_apiMethod · 0.95

Tested by 1

test_logoutFunction · 0.76