Account Switcher
Switch between personal and organization context.
The account switcher lets a signed-in user move between personal context and any organization they belong to.
Relevant Code
- UI:
apps/web/app/[locale]/(internal)/_components/workspace-dropdown.tsx - server context helpers:
packages/better-auth/src/context.ts - client hook:
@kit/better-auth/hooks/use-account-context
Important Repo Detail
Use useAccountContext() for client-side account state in this repo.