{"id":"authz.organizations.better-auth","compat":{"peer":{"next":"^14.0.0 || ^15.0.0 || ^16.0.0","react":"^18.0.0 || ^19.0.0"},"runtime":"node@>=20","framework":"next@^16.0.0"},"schema":"turbineh.component/v0.1","source":{"purl":"pkg:npm/better-auth@1.7.6","repo":"https://github.com/better-auth/better-auth","integrity":"sha512-WTMqOpmTTj+oBoX7zzPOzL85342Upyf+/v0IkH1kvGRA85lV4JGRFIYMIRKqvjZ6ShsuL5VX/c9C13jtoZXcKA=="},"status":"approved","effects":{"db":true,"fs":false,"network":false,"external_services":[]},"license":{"declared":"MIT","detected":"MIT","obligations":["preserve-notice"]},"quality":{"tests":{"date":"2026-10-10","passed":true,"command":"recipe saas-crud: typecheck, lint, unit, build, e2e (sandbox, no network)"}},"version":"0.1.0","category":"authz","contract":{"errors":["not a member","no active organization"],"inputs":["authenticated session"],"limits":["Requires the organization plugin on server and client"],"outputs":["active organization id","member role"]},"evidence":[{"ref":"bench/results/2026-10-10-d1-recipe-saas-crud.json","claim":"Sign-up creates an organization and the creator is owner (E2E in recipe saas-crud)","origin":"tested"}],"security":{"scope":"Known advisories for this exact version (OSV). Static analysis not yet run.","tools":["osv.dev-api"],"findings":[],"scanned_at":"2026-10-10"},"relations":{"provides":["authz.organizations"],"requires":["auth.session"],"conflicts":[],"tested_with":["recipe.saas-crud"]},"capability":{"cons":["Role checks for app data are the app's responsibility"],"does":"Organizations (workspaces) with members, roles (owner, admin, member), invitations and an active organization per session","pros":["Same library as the session component, no extra dependency"],"does_not":"Does not scope application data by itself; the app must filter every query by the active organization","use_cases":["saas-crud","client-portal","internal-tool"],"alternatives":[]},"integration":{"config":["BETTER_AUTH_SECRET","BETTER_AUTH_URL"],"install":"pnpm add better-auth@1.7.6","strategy":"dependency","migrations":true}}