MCPcopy Create free account
hub / github.com/dot-agent/nextpy / get_token

Method get_token

nextpy/backend/state.py:673–679  ·  view source on GitHub ↗

Return the token of the client associated with this state. Returns: The token of the client.

(self)

Source from the content-addressed store, hash-verified

671 }
672
673 def get_token(self) -> str:
674 """Return the token of the client associated with this state.
675
676 Returns:
677 The token of the client.
678 """
679 return self.router_data.get(constants.RouteVar.CLIENT_TOKEN, "")
680
681 def get_sid(self) -> str:
682 """Return the session ID of the client associated with this state.

Callers 2

test_get_tokenFunction · 0.80
test_state_proxyFunction · 0.80

Calls 1

getMethod · 0.45

Tested by 2

test_get_tokenFunction · 0.64
test_state_proxyFunction · 0.64