[PR #8598] [MERGED] docs: fix import statement in your-first-plugin.mdx #24987

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8598
Author: @developerzeke
Created: 3/13/2026
Status: Merged
Merged: 3/13/2026
Merged by: @himself65

Base: canaryHead: canary


📝 Commits (1)

  • d09923d docs: fix import statement in your-first-plugin.mdx

📊 Changes

1 file changed (+1 additions, -2 deletions)

View changed files

📝 docs/content/docs/guides/your-first-plugin.mdx (+1 -2)

📄 Description

Change createAuthMiddleware import from better-auth/plugins (invalid) to importing frombetter-auth/api.


Summary by cubic

Fixes the import example in the Your First Plugin guide to prevent copy-paste errors. createAuthMiddleware and APIError are now both imported from better-auth/api instead of createAuthMiddleware from better-auth/plugins.

Written for commit d09923d737. 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/8598 **Author:** [@developerzeke](https://github.com/developerzeke) **Created:** 3/13/2026 **Status:** ✅ Merged **Merged:** 3/13/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `canary` --- ### 📝 Commits (1) - [`d09923d`](https://github.com/better-auth/better-auth/commit/d09923d7373267f5983ee8b28a6b560fb5d24fe6) docs: fix import statement in your-first-plugin.mdx ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/guides/your-first-plugin.mdx` (+1 -2) </details> ### 📄 Description Change `createAuthMiddleware` import from `better-auth/plugins` (invalid) to importing from`better-auth/api`. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes the import example in the Your First Plugin guide to prevent copy-paste errors. `createAuthMiddleware` and `APIError` are now both imported from `better-auth/api` instead of `createAuthMiddleware` from `better-auth/plugins`. <sup>Written for commit d09923d7373267f5983ee8b28a6b560fb5d24fe6. 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:40:26 -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#24987