[PR #7978] [MERGED] fix: Updated incorrect import #24565

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7978
Author: @joshnuss
Created: 2/15/2026
Status: Merged
Merged: 2/15/2026
Merged by: @Bekacru

Base: canaryHead: fix-docs-auth-endpoint


📝 Commits (2)

📊 Changes

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

View changed files

📝 docs/content/docs/concepts/plugins.mdx (+1 -2)

📄 Description

The import was missing for createAuthEndpoint


Summary by cubic

Fixed the plugins docs example by replacing the incorrect createAuthMiddleware import and consolidating imports. The snippet now imports createAuthEndpoint and sessionMiddleware from better-auth/api, making it accurate and compilable.

Written for commit 2f082eac36. 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/7978 **Author:** [@joshnuss](https://github.com/joshnuss) **Created:** 2/15/2026 **Status:** ✅ Merged **Merged:** 2/15/2026 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix-docs-auth-endpoint` --- ### 📝 Commits (2) - [`6e77961`](https://github.com/better-auth/better-auth/commit/6e7796192eee5572601faddca8748be415110a32) fix: Updated incorrect import - [`2f082ea`](https://github.com/better-auth/better-auth/commit/2f082eac36511b769a1371fbf4d11754ea7248d6) Update import source ### 📊 Changes **1 file changed** (+1 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/plugins.mdx` (+1 -2) </details> ### 📄 Description The import was missing for `createAuthEndpoint` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed the plugins docs example by replacing the incorrect createAuthMiddleware import and consolidating imports. The snippet now imports createAuthEndpoint and sessionMiddleware from better-auth/api, making it accurate and compilable. <sup>Written for commit 2f082eac36511b769a1371fbf4d11754ea7248d6. 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:26:08 -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#24565