Components
SignedIn
Render children only when the user is authenticated.
<SignedIn />
Wraps content that should only render for authenticated users.
Usage
Props
| Prop | Type | Required | Description |
|---|---|---|---|
children | ReactNode | Yes | Rendered while useSession().isAuthenticated === true |
Notes
- Does not block SSR; renders a
nullon server until the session resolves client-side. - For server-rendered conditional paths, use
auth()from@avnology/nextjsinstead.