docs: add callout for access control bundle size#7688
Merged
Bekacru merged 2 commits intobetter-auth:canaryfrom Jan 29, 2026
Merged
docs: add callout for access control bundle size#7688Bekacru merged 2 commits intobetter-auth:canaryfrom
Bekacru merged 2 commits intobetter-auth:canaryfrom
Conversation
|
@jslno is attempting to deploy a commit to the better-auth Team on Vercel. A member of the Team first needs to authorize it. |
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the organization and admin plugin documentation to address bundle size issues when using access control on the client. It adds explicit warnings to use the tree-shakeable better-auth/plugins/access entrypoint instead of the broader better-auth/plugins import.
Changes:
- Add a warning callout in the organization plugin docs around
createAccessControlexplaining the correctbetter-auth/plugins/accessimport to keep bundle size small. - Add the same warning callout to the admin plugin access control docs to reinforce the recommended import path for client-safe access control definitions.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
docs/content/docs/plugins/organization.mdx |
Adds a warning callout after the access control setup snippet, instructing users to import from better-auth/plugins/access to avoid pulling unnecessary server dependencies into the client bundle. |
docs/content/docs/plugins/admin.mdx |
Adds an equivalent warning callout in the admin plugin access control section, aligning the docs with the recommended import path for better bundle sizes. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
better-auth
@better-auth/cli
@better-auth/core
@better-auth/drizzle-adapter
@better-auth/expo
@better-auth/i18n
@better-auth/kysely-adapter
@better-auth/memory-adapter
@better-auth/mongo-adapter
@better-auth/oauth-provider
@better-auth/passkey
@better-auth/prisma-adapter
@better-auth/redis-storage
@better-auth/scim
@better-auth/sso
@better-auth/stripe
@better-auth/telemetry
@better-auth/test-utils
commit: |
himself65
pushed a commit
that referenced
this pull request
Feb 4, 2026
himself65
pushed a commit
that referenced
this pull request
Feb 5, 2026
himself65
pushed a commit
that referenced
this pull request
Feb 18, 2026
himself65
pushed a commit
that referenced
this pull request
Feb 18, 2026
himself65
pushed a commit
that referenced
this pull request
Feb 18, 2026
himself65
pushed a commit
that referenced
this pull request
Feb 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #7637
Summary by cubic
Added a warning callout in the admin and organization plugin docs to import access control from
better-auth/plugins/accessinstead ofbetter-auth/pluginsto keep bundle sizes small. Connects to Linear #7637 by clarifying the correct import path to avoid bundle bloat.Written for commit 8a2b1dc. Summary will update on new commits.