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

Function logout

src/api/admin.py:1455–1457  ·  view source on GitHub ↗

Logout endpoint (alias for /api/admin/logout)

(response: Response, token: str = Depends(verify_admin_token))

Source from the content-addressed store, hash-verified

1453 auto_refresh_enabled=item.auto_refresh_enabled,
1454 refresh_interval_minutes=item.refresh_interval_minutes,
1455 )
1456 should_enable = item.is_active and not is_expired
1457 if not should_enable:
1458 await token_manager.disable_token(new_token.id)
1459 new_token.is_active = False
1460 if concurrency_manager:

Callers

nothing calls this directly

Calls 1

admin_logoutFunction · 0.85

Tested by

no test coverage detected