MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / disable_token

Method disable_token

src/services/token_manager.py:265–267  ·  view source on GitHub ↗

Disable a token

(self, token_id: int)

Source from the content-addressed store, hash-verified

263 await self.db.reset_error_count(token_id)
264
265 async def disable_token(self, token_id: int):
266 """Disable a token"""
267 await self.db.update_token(token_id, is_active=False)
268
269 # ========== Token添加 (支持Project创建) ==========
270

Callers 4

_refresh_at_innerMethod · 0.95
record_errorMethod · 0.95
disable_tokenFunction · 0.80
import_tokensFunction · 0.80

Calls 1

update_tokenMethod · 0.45

Tested by

no test coverage detected