[PR #8865] [MERGED] docs: fix createAuthMiddleware imports in plugins and waku guides #25163

Closed
opened 2026-04-15 22:44:47 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8865
Author: @pbacza
Created: 3/31/2026
Status: Merged
Merged: 3/31/2026
Merged by: @bytaesu

Base: mainHead: docs/fix-createAuthMiddleware-import


📝 Commits (2)

  • eed3860 docs: add missing createAuthMiddleware import in waku guide
  • 318c003 docs: update createAuthMiddleware import in plugins guide

📊 Changes

2 files changed (+3 additions, -3 deletions)

View changed files

📝 docs/content/docs/concepts/plugins.mdx (+2 -3)
📝 docs/content/docs/integrations/waku.mdx (+1 -0)

📄 Description

Summary

  • Fix createAuthMiddleware import in plugins guide: was importing from "better-auth/plugins" instead of "better-auth/api"
  • Consolidate createAuthMiddleware and getSessionFromCtx into a single import from "better-auth/api" in plugins guide
  • Add missing createAuthMiddleware import in waku integration guide

Summary by cubic

Fixed createAuthMiddleware imports in the plugins and Waku guides to use better-auth/api, and consolidated related imports to match the current API.

  • Bug Fixes
    • Plugins guide: switched from better-auth/plugins to better-auth/api and consolidated createAuthMiddleware + getSessionFromCtx into a single import.
    • Waku guide: added the missing createAuthMiddleware import from better-auth/api.

Written for commit 318c003c91. Summary will update on new commits.


🔄 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/8865 **Author:** [@pbacza](https://github.com/pbacza) **Created:** 3/31/2026 **Status:** ✅ Merged **Merged:** 3/31/2026 **Merged by:** [@bytaesu](https://github.com/bytaesu) **Base:** `main` ← **Head:** `docs/fix-createAuthMiddleware-import` --- ### 📝 Commits (2) - [`eed3860`](https://github.com/better-auth/better-auth/commit/eed386021855ca52efda161b98fe270e95c84c92) docs: add missing createAuthMiddleware import in waku guide - [`318c003`](https://github.com/better-auth/better-auth/commit/318c003c91e552790c87c36afdee54f859ed71a2) docs: update createAuthMiddleware import in plugins guide ### 📊 Changes **2 files changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/plugins.mdx` (+2 -3) 📝 `docs/content/docs/integrations/waku.mdx` (+1 -0) </details> ### 📄 Description ## Summary - Fix `createAuthMiddleware` import in plugins guide: was importing from `"better-auth/plugins"` instead of `"better-auth/api"` - Consolidate `createAuthMiddleware` and `getSessionFromCtx` into a single import from `"better-auth/api"` in plugins guide - Add missing `createAuthMiddleware` import in waku integration guide <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed `createAuthMiddleware` imports in the plugins and Waku guides to use `better-auth/api`, and consolidated related imports to match the current API. - **Bug Fixes** - Plugins guide: switched from `better-auth/plugins` to `better-auth/api` and consolidated `createAuthMiddleware` + `getSessionFromCtx` into a single import. - Waku guide: added the missing `createAuthMiddleware` import from `better-auth/api`. <sup>Written for commit 318c003c91e552790c87c36afdee54f859ed71a2. Summary will update on new commits.</sup> <!-- 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-15 22:44:47 -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#25163