Lightlines
By better-auth

organization-best-practices

better-auth30.9k installs

Build secure organizations, teams, roles, and permissions.

What it does

Guides implementation of multi-tenant organizations, memberships, invitations, teams, roles, permissions, and RBAC with Better Auth.

When to use it

Use when implementing organization setup, team management, member roles, access control, or Better Auth's organization plugin.

How to use it

It changes how the agent configures and verifies organization features in a Better Auth project.

What you provide

  • An existing project

Security reviews

Not yet reviewed.


What you need · 3

The project needs the better-auth package and its organization plugin.

A database is needed to hold the organization, member, and invitation tables.

The @better-auth/organization addon enables the documented dynamic access-control configuration.


Access · 1

This skill

database

Write

Updates your database schema