MCPcopy
hub / github.com/tinode/chat / read_cookie

Function read_cookie

tn-cli/client.py:72–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70
71# Read cookie file for logging in with the cookie.
72def read_cookie():
73 try:
74 cookie = open('.tn-cli-cookie', 'r')
75 params = json.load(cookie)
76 cookie.close()
77 return params.get("token")
78
79 except Exception as err:
80 printerr("Missing or invalid cookie file '.tn-cli-cookie'", err)
81 return None
82
83
84def pop_from_output_queue():

Callers 1

tn-cli.pyFile · 0.90

Calls 2

printerrFunction · 0.90
getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…