[PR #999] [MERGED] fix(docs): improve the hooks section #11827

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/999
Author: @t3duk
Created: 12/23/2024
Status: Merged
Merged: 12/23/2024
Merged by: @Bekacru

Base: mainHead: main


📝 Commits (2)

  • 1bf4d78 fix(docs): add imports for clarity
  • 8e537c7 fix(docs): ctx.response not real, rather ctx.responseHeader.set

📊 Changes

1 file changed (+5 additions, -3 deletions)

View changed files

📝 docs/content/docs/concepts/hooks.mdx (+5 -3)

📄 Description

  • add the import createAuthMiddleware where the entire auth.ts is shown as example
  • change ctx.response.headers.set to ctx.responseHeader.set, as former is not correct

🔄 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/999 **Author:** [@t3duk](https://github.com/t3duk) **Created:** 12/23/2024 **Status:** ✅ Merged **Merged:** 12/23/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (2) - [`1bf4d78`](https://github.com/better-auth/better-auth/commit/1bf4d784b0bdb6e26a8221cc0676aaa45c6e09af) fix(docs): add imports for clarity - [`8e537c7`](https://github.com/better-auth/better-auth/commit/8e537c74acc561060ba6e47ba5adad9a608d2e93) fix(docs): ctx.response not real, rather ctx.responseHeader.set ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/hooks.mdx` (+5 -3) </details> ### 📄 Description - add the import `createAuthMiddleware` where the entire auth.ts is shown as example - change `ctx.response.headers.set` to `ctx.responseHeader.set`, as former is not correct --- <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:01:22 -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#11827