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

Method get_token_refresh_config

src/core/database.py:2020–2028  ·  view source on GitHub ↗

Get protocol ST refresh configuration

(self)

Source from the content-addressed store, hash-verified

2018 await db.commit()
2019
2020 async def get_token_refresh_config(self) -> TokenRefreshConfig:
2021 """Get protocol ST refresh configuration"""
2022 async with self._connect() as db:
2023 db.row_factory = aiosqlite.Row
2024 cursor = await db.execute("SELECT * FROM token_refresh_config WHERE id = 1")
2025 row = await cursor.fetchone()
2026 if row:
2027 return TokenRefreshConfig(**dict(row))
2028 return TokenRefreshConfig()
2029
2030 async def update_token_refresh_config(
2031 self,

Callers 3

get_token_refresh_configFunction · 0.80

Calls 2

_connectMethod · 0.95
TokenRefreshConfigClass · 0.85

Tested by

no test coverage detected