MCPcopy Create free account
hub / github.com/HiddenCodeDevs/BlumTelegramBot / set_tokens

Method set_tokens

bot/core/api.py:105–107  ·  view source on GitHub ↗
(self, token_data: dict)

Source from the content-addressed store, hash-verified

103 raise AuthError("Auth tries ended. Result Failed!")
104
105 def set_tokens(self, token_data: dict):
106 self._refresh_token = token_data.get('refresh', '')
107 self._session.headers["Authorization"] = f"Bearer {token_data.get('access', '')}"
108
109 async def refresh_tokens(self):
110 if "Authorization" in self._session.headers:

Callers 2

loginMethod · 0.95
refresh_tokensMethod · 0.95

Calls 1

getMethod · 0.80

Tested by

no test coverage detected