auth/bootstrap_routes.ts view source
BootstrapRouteOptions Per-factory configuration for bootstrap route specs.
bootstrap_status is runtime state (a mutable ref), not a dep or options value —
it is passed through so the route handler can flip it on success.
session_options
SessionOptions<string>bootstrap_status
Shared mutable reference — flipped to false after successful bootstrap.
on_bootstrap
Called after successful bootstrap (account + session created). Use for app-specific post-bootstrap work like generating API tokens.
(result: BootstrapAccountSuccess, c: Context) => Promise<void>ip_rate_limiter
Rate limiter for bootstrap attempts (per-IP). Pass null to disable.
RateLimiter | null