Session lifecycle UI (expiry, re-auth)
Generated from
mcp/patterns.registry.json— do not edit by hand; change the registry and runbun run patterns:build.
Index card — the docs below are the canonical explanation; deep-tier pattern pages additionally carry invariants and emulation notes.
Category: App Shell & Navigation · Tier: light · Risk: low — structural pattern, no external services
Shell-level UI that reacts to authentication session state — showing an expiry warning, a re-authentication modal on expiry, and immediate redirect on revocation.
When to use: Reach for it when handling session expiry warnings or re-authentication prompts inside the app shell.
Docs
Code
src/lib/components/shell/session/(GitHub · GitLab)src/lib/state/session.svelte.ts(GitHub · GitLab)
Proof
Machine-readable record: app-shell-session-lifecycle in mcp/patterns.registry.json.