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

Function get_token_refresh_config

src/api/admin.py:1641–1651  ·  view source on GitHub ↗

Get AT/protocol refresh configuration.

(token: str = Depends(verify_admin_token))

Source from the content-addressed store, hash-verified

1639
1640@router.get("/api/token-refresh/config")
1641async def get_token_refresh_config(token: str = Depends(verify_admin_token)):
1642 """Get AT/protocol refresh configuration."""
1643 refresh_config = await db.get_token_refresh_config()
1644 return {
1645 "success": True,
1646 "config": {
1647 "at_auto_refresh_enabled": True,
1648 "protocol_refresh_enabled": refresh_config.enabled,
1649 "refresh_interval_minutes": refresh_config.refresh_interval_minutes,
1650 }
1651 }
1652
1653
1654@router.post("/api/token-refresh/enabled")

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected