fix: typer exit codes, JWT 7d expiry, shared test fixtures, AdminTab query, mantine 9.6.3
This commit is contained in:
parent
03af41e837
commit
696db34c90
16 changed files with 210 additions and 251 deletions
|
|
@ -36,6 +36,10 @@ def _blocking_startup_sync() -> None:
|
|||
async def lifespan(app: FastAPI) -> AsyncIterator[None]:
|
||||
task: asyncio.Task | None = None
|
||||
stop: asyncio.Event | None = None
|
||||
if not settings.jwt_secret:
|
||||
# Fail-closed sessions need a signing secret; without one every
|
||||
# login 500s. Warn loudly instead of crashing the whole API.
|
||||
logger.error("JWT_SECRET is empty — logins will fail until it is set")
|
||||
if settings.flows_watch_enabled:
|
||||
await asyncio.to_thread(_blocking_startup_sync)
|
||||
stop = asyncio.Event()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue