# Auth Performance

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

- Skill: `conectlens/auth-performance` (Agent Skill)
- Install (CLI): `npx skillmds@latest add conectlens/auth-performance`
- Raw SKILL.md: https://api.skillmd.com/api/skills/conectlens/auth-performance/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: conectlens (https://skillmd.com/u/conectlens)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/conectlens/auth-performance

---


# 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.
