Avnology ID
Components

SignedIn

Render children only when the user is authenticated.

<SignedIn />

Wraps content that should only render for authenticated users.

Usage

Props

PropTypeRequiredDescription
childrenReactNodeYesRendered while useSession().isAuthenticated === true

Notes

  • Does not block SSR; renders a null on server until the session resolves client-side.
  • For server-rendered conditional paths, use auth() from @avnology/nextjs instead.