MCPcopy
hub / github.com/1Panel-dev/MaxKB / new_instance

Method new_instance

apps/common/auth/common.py:83–87  ·  view source on GitHub ↗
(token_dict)

Source from the content-addressed store, hash-verified

81
82 @staticmethod
83 def new_instance(token_dict):
84 return ChatUserToken(token_dict.get('application_id'), token_dict.get('user_id'),
85 token_dict.get('access_token'), token_dict.get('type'), token_dict.get('chat_user_type'),
86 token_dict.get('chat_user_id'),
87 ChatAuthentication.new_instance(token_dict.get('authentication')))

Callers 2

chat_work_flowMethod · 0.45
handleMethod · 0.45

Calls 2

ChatUserTokenClass · 0.85
getMethod · 0.45

Tested by

no test coverage detected