[PR #916] [MERGED] feat: hooks #11789

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/916
Author: @Bekacru
Created: 12/16/2024
Status: Merged
Merged: 12/20/2024
Merged by: @Bekacru

Base: mainHead: feat/hooks


📝 Commits (7)

📊 Changes

7 files changed (+450 additions, -86 deletions)

View changed files

📝 docs/components/sidebar-content.tsx (+20 -0)
docs/content/docs/concepts/hooks.mdx (+161 -0)
📝 packages/better-auth/src/api/call.test.ts (+57 -1)
📝 packages/better-auth/src/api/index.ts (+60 -45)
📝 packages/better-auth/src/types/adapter.ts (+2 -1)
📝 packages/better-auth/src/types/options.ts (+122 -15)
📝 packages/better-auth/src/types/plugins.ts (+28 -24)

📄 Description

this pr introduces hooks which let's you execute custom logic to provide a way to customize Better Auth's behavior without writing a plugin.

closes #503


🔄 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/916 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 12/16/2024 **Status:** ✅ Merged **Merged:** 12/20/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/hooks` --- ### 📝 Commits (7) - [`d6c4abe`](https://github.com/better-auth/better-auth/commit/d6c4abe1b5f3c1281bb23ff39f9b8f9c6cdc44dd) wip - [`25c3482`](https://github.com/better-auth/better-auth/commit/25c348241ff9dd013bc9ab0dbcf58fd0e08a08c3) feat: hooks - [`f3b4540`](https://github.com/better-auth/better-auth/commit/f3b4540110234011da57ce09acab14706a8401b3) chore: fix types - [`56d8df0`](https://github.com/better-auth/better-auth/commit/56d8df02305984b0fe089c19184d60a9c78b12f9) Merge branch 'main' into feat/hooks - [`1761a8a`](https://github.com/better-auth/better-auth/commit/1761a8a9d2b5b4c8a7cd56ac78ae767c4a79c178) chore: fix type - [`cc6fd50`](https://github.com/better-auth/better-auth/commit/cc6fd509b4ef3f72187852f44bd6a29ddad760ac) Merge branch 'main' into feat/hooks - [`6cced22`](https://github.com/better-auth/better-auth/commit/6cced22033b16c688290e773609a34efb93d3c5f) chore: lint ### 📊 Changes **7 files changed** (+450 additions, -86 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/sidebar-content.tsx` (+20 -0) ➕ `docs/content/docs/concepts/hooks.mdx` (+161 -0) 📝 `packages/better-auth/src/api/call.test.ts` (+57 -1) 📝 `packages/better-auth/src/api/index.ts` (+60 -45) 📝 `packages/better-auth/src/types/adapter.ts` (+2 -1) 📝 `packages/better-auth/src/types/options.ts` (+122 -15) 📝 `packages/better-auth/src/types/plugins.ts` (+28 -24) </details> ### 📄 Description this pr introduces `hooks` which let's you execute custom logic to provide a way to customize Better Auth's behavior without writing a plugin. closes #503 --- <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:00:19 -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#11789