[PR #3937] [CLOSED] feat(api): support glob patterns in disabledPaths matching #13344

Closed
opened 2026-04-13 08:52:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3937
Author: @Kinfe123
Created: 8/11/2025
Status: Closed

Base: mainHead: feat/disabled-paths-glob


📝 Commits (10+)

📊 Changes

44 files changed (+1264 additions, -284 deletions)

View changed files

📝 demo/nextjs/app/globals.css (+91 -51)
📝 docs/app/docs/[[...slug]]/page.tsx (+2 -0)
📝 docs/components/icons.tsx (+23 -0)
docs/components/mdx/add-to-cursor.tsx (+41 -0)
📝 docs/components/sidebar-content.tsx (+5 -0)
📝 docs/content/docs/authentication/discord.mdx (+42 -16)
📝 docs/content/docs/concepts/oauth.mdx (+201 -30)
docs/content/docs/integrations/convex.mdx (+347 -0)
📝 docs/content/docs/introduction.mdx (+48 -7)
📝 docs/content/docs/plugins/device-authorization.mdx (+6 -6)
📝 docs/content/docs/reference/options.mdx (+10 -1)
📝 packages/better-auth/package.json (+1 -1)
📝 packages/better-auth/src/__snapshots__/init.test.ts.snap (+2 -1)
📝 packages/better-auth/src/adapters/adapter-factory/index.ts (+5 -2)
📝 packages/better-auth/src/adapters/adapter-factory/test/adapter-factory.test.ts (+47 -0)
📝 packages/better-auth/src/adapters/adapter-factory/types.ts (+1 -0)
📝 packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts (+1 -1)
📝 packages/better-auth/src/adapters/kysely-adapter/dialect.ts (+4 -0)
📝 packages/better-auth/src/adapters/kysely-adapter/kysely-adapter.ts (+1 -1)
📝 packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts (+1 -1)

...and 24 more files

📄 Description

closes #3767


Summary by cubic

Added support for glob patterns in the disabledPaths option, allowing more flexible path matching for disabling auth routes.

  • New Features
  • Disabled paths now accept wildcards like * and ** for single and multi-level matching.
  • Updated documentation and tests to show usage and verify behavior.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/3937 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/11/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `feat/disabled-paths-glob` --- ### 📝 Commits (10+) - [`aade7f1`](https://github.com/better-auth/better-auth/commit/aade7f1f28bf1fafbeddfa123b1b60c8d3762859) perf improvents - [`210b5e5`](https://github.com/better-auth/better-auth/commit/210b5e57afa3f7d32c91a66931a63dc1cc4d4a7e) udpate - [`c798708`](https://github.com/better-auth/better-auth/commit/c7987083dd881ac374f81a3a5e7f7497b8839062) update - [`e3d3467`](https://github.com/better-auth/better-auth/commit/e3d34676ec6d1847fc3b6f2d91a42bd7df18e7de) update - [`078cb48`](https://github.com/better-auth/better-auth/commit/078cb4806c35b2c83e6169b3e3963b52c98fe63b) more tests - [`0f542dd`](https://github.com/better-auth/better-auth/commit/0f542dd5726b68680d658cb7c33371582e2c6787) update - [`405c041`](https://github.com/better-auth/better-auth/commit/405c041251434624337fd83d15822fce8fec6bb2) Merge branch 'main' into feat/disabled-paths-glob - [`d4ac03a`](https://github.com/better-auth/better-auth/commit/d4ac03a848ee4d9f0fbfbede2ed3dfd3d16c8dd1) Merge branch 'main' into feat/disabled-paths-glob - [`27a6534`](https://github.com/better-auth/better-auth/commit/27a653465a60e7b0e9ec04e4ce718cd3528f4b7b) Merge branch 'main' into feat/disabled-paths-glob - [`c2ce770`](https://github.com/better-auth/better-auth/commit/c2ce770208a314991a3988c51eb5ae59345b2dc3) lint ### 📊 Changes **44 files changed** (+1264 additions, -284 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/app/globals.css` (+91 -51) 📝 `docs/app/docs/[[...slug]]/page.tsx` (+2 -0) 📝 `docs/components/icons.tsx` (+23 -0) ➕ `docs/components/mdx/add-to-cursor.tsx` (+41 -0) 📝 `docs/components/sidebar-content.tsx` (+5 -0) 📝 `docs/content/docs/authentication/discord.mdx` (+42 -16) 📝 `docs/content/docs/concepts/oauth.mdx` (+201 -30) ➕ `docs/content/docs/integrations/convex.mdx` (+347 -0) 📝 `docs/content/docs/introduction.mdx` (+48 -7) 📝 `docs/content/docs/plugins/device-authorization.mdx` (+6 -6) 📝 `docs/content/docs/reference/options.mdx` (+10 -1) 📝 `packages/better-auth/package.json` (+1 -1) 📝 `packages/better-auth/src/__snapshots__/init.test.ts.snap` (+2 -1) 📝 `packages/better-auth/src/adapters/adapter-factory/index.ts` (+5 -2) 📝 `packages/better-auth/src/adapters/adapter-factory/test/adapter-factory.test.ts` (+47 -0) 📝 `packages/better-auth/src/adapters/adapter-factory/types.ts` (+1 -0) 📝 `packages/better-auth/src/adapters/drizzle-adapter/drizzle-adapter.ts` (+1 -1) 📝 `packages/better-auth/src/adapters/kysely-adapter/dialect.ts` (+4 -0) 📝 `packages/better-auth/src/adapters/kysely-adapter/kysely-adapter.ts` (+1 -1) 📝 `packages/better-auth/src/adapters/mongodb-adapter/mongodb-adapter.ts` (+1 -1) _...and 24 more files_ </details> ### 📄 Description closes #3767 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added support for glob patterns in the disabledPaths option, allowing more flexible path matching for disabling auth routes. - **New Features** - Disabled paths now accept wildcards like * and ** for single and multi-level matching. - Updated documentation and tests to show usage and verify behavior. <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-13 08:52:41 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#13344