feat(auth): bootstrap token entries carry an optional scope

This commit is contained in:
hh
2026-08-30 18:25:48 +02:00
parent 064d855382
commit e90963a6c3
3 changed files with 54 additions and 20 deletions
+3 -1
View File
@@ -140,7 +140,9 @@ async def _async_main() -> None:
# background task). BOOTSTRAP_TOKENS layers on top so first-run /
# examples still work without DB writes.
token_store = TokenStore(
db, bootstrap=TokenStore.parse_bootstrap(settings.bootstrap_tokens)
db,
bootstrap=TokenStore.parse_bootstrap(settings.bootstrap_tokens),
bootstrap_scopes=TokenStore.parse_bootstrap_scopes(settings.bootstrap_tokens),
)
async with AsyncExitStack() as stack: