Can you refactor src/auth to use a single useUser hook instead of the scattered context lookups?
On it. I will start by listing the auth-related files, then read the current context usage to understand the shape of the API.
Got it. The plan is to extract a `useUser` hook that wraps the context, returns `{ user, isLoading, error }`, and deprecates the direct `useContext(AuthContext)` calls. I will also remove `useSession.ts` since it duplicates the same logic. Want me to proceed?
Yes, go ahead.
Creating src/auth/useUser.ts and updating consumers. Diff below for approval.
Llama 3.3 70Benter to send · shift+enter for new line