Skip to content

Accounts and teams

Organizations

Every user gets a personal workspace on sign-up, and new sessions open on their first workspace. Teams are managed from one settings page, and org-scoped API calls verify membership before they run.

  • Better Auth

What you get

  • Owner, admin and member roles
  • Rename, invite, change roles, remove members and leave from /settings/team
  • Invitations by email that expire after 48 hours, with a copyable link
  • A workspace switcher and recent activity on the team page
  • orgProcedure, which resolves the active workspace and checks membership

Turn it on

  • Works out of the box through the organization plugin in lib/auth.ts

Where it lives

  • lib/organizations.ts
  • features/organization/
  • app/(dashboard)/settings/team
  • trpc/routers/organization.ts