Auth Performance

Fix startup and session performance in apps/auth, including profile bootstrap, session hydration, repeated auth fetches, and unnecessary render waterfalls.

conectlens f267e94 648 B Updated

File contents

Auth Performance

Rules

  • App bootstrap must not fan out into repeated profile/session reads.
  • Load only the fields needed to decide navigation and identity state.
  • Defer non-critical profile enrichment.
  • Avoid duplicate auth listeners and duplicate bootstrap fetches.

Gotchas

  • Auth pages feel small, but repeated session/profile fetches can block the whole shell.
  • Do not fetch large profile-related joins during login or startup.

conectlens/lenserfight/tree/main/apps/auth/.claude/skills/auth-performance commit f267e9466c

Frequently asked questions

npx skillmds@latest add conectlens/auth-performance