Skip to content

fix(jazz-tools/better-auth): import createAuthMiddleware from better-auth/api#3488

Open
joeinnes wants to merge 2 commits intomainfrom
betterauth-1.5.3
Open

fix(jazz-tools/better-auth): import createAuthMiddleware from better-auth/api#3488
joeinnes wants to merge 2 commits intomainfrom
betterauth-1.5.3

Conversation

@joeinnes
Copy link
Member

@joeinnes joeinnes commented Mar 4, 2026

Summary

  • createAuthMiddleware was removed from better-auth/plugins re-exports in better-auth 1.5.3, causing a build error
  • Importing from better-auth/api is the canonical location and is compatible with older versions too
  • All tests passing

Note

Low Risk
Low risk change limited to an import path update plus a patch changeset; behavior should remain the same but build compatibility depends on the target better-auth version.

Overview
Fixes compatibility with better-auth 1.5.3 by switching createAuthMiddleware to be imported from better-auth/api (alongside APIError) instead of better-auth/plugins.

Adds a patch changeset for jazz-tools to release this import-path fix.

Written by Cursor Bugbot for commit 307b11d. This will update automatically on new commits. Configure here.

joeinnes added 2 commits March 4, 2026 14:55
…auth/api

better-auth 1.5.3 removed the re-export of createAuthMiddleware from
better-auth/plugins. It remains available in better-auth/api, which is
compatible with older versions too.
@assert-app
Copy link

assert-app bot commented Mar 4, 2026

@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
gcmp-homepage Ready Ready Preview, Comment Mar 4, 2026 2:16pm
jazz-nextjs Ready Ready Preview, Comment Mar 4, 2026 2:16pm
passkey-demo Ready Ready Preview, Comment Mar 4, 2026 2:16pm
20 Skipped Deployments
Project Deployment Actions Updated (UTC)
clerk-demo Ignored Ignored Preview Mar 4, 2026 2:16pm
file-upload-demo Ignored Ignored Preview Mar 4, 2026 2:16pm
form-demo Ignored Ignored Preview Mar 4, 2026 2:16pm
image-upload-demo Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-chat Ignored Ignored Mar 4, 2026 2:16pm
jazz-chat-1 Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-chat-2 Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-filestream Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-homepage Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-image-upload Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-inspector Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-multi-cursors Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-organization Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-paper-scissors Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-richtext Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-todo Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-vector-search Ignored Ignored Preview Mar 4, 2026 2:16pm
jazz-version-history Ignored Ignored Preview Mar 4, 2026 2:16pm
music-demo Ignored Ignored Preview Mar 4, 2026 2:16pm
passphrase-auth-demo Ignored Ignored Preview Mar 4, 2026 2:16pm

Request Review

Copy link
Contributor

@Takeno Takeno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants