Organization Dashboard
How the shared dashboard route behaves with organization context.
This repo uses the same /dashboard route for personal and organization contexts.
How Context Works
- server code:
getAccountContext()from@kit/better-auth/context - client code:
useAccountContext()from@kit/better-auth/hooks/use-account-context - active organization: stored on the session as
activeOrganizationId
Use account context to decide which data to load and which UI to render. Do not rely on older patterns from other kits such as Supabase-specific flows or URL-based organization routing.