[PR #6227] [MERGED] chore: fix plugin import #23432

Closed
opened 2026-04-15 21:43:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6227
Author: @hyoban
Created: 11/23/2025
Status: Merged
Merged: 11/23/2025
Merged by: @Bekacru

Base: canaryHead: 11-23-plugin-import


📝 Commits (1)

  • 4b0021b chore(two-factor): fix plugin import

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/additional-fields/client.ts (+5 -2)
📝 packages/better-auth/src/plugins/two-factor/client.ts (+1 -1)

📄 Description

The inferred type of 'baseAuthPlugins' cannot be named without a reference to '../../../../node_modules/better-auth/dist/index-SBjk_96V.mjs'. This is likely not portable. A type annotation is necessary.ts(2742)

Summary by cubic

Fixed the two-factor client to import the plugin type from "." instead of "../../plugins/two-factor", resolving the ts(2742) portability error. Also switched additional-fields client type imports to "@better-auth/core" to avoid non-portable inferred types.

Written for commit 4b0021b0ce. Summary will update automatically 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/6227 **Author:** [@hyoban](https://github.com/hyoban) **Created:** 11/23/2025 **Status:** ✅ Merged **Merged:** 11/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `11-23-plugin-import` --- ### 📝 Commits (1) - [`4b0021b`](https://github.com/better-auth/better-auth/commit/4b0021b0ceb18c6eba15283fbd0ac3c45a58c639) chore(two-factor): fix plugin import ### 📊 Changes **2 files changed** (+6 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/additional-fields/client.ts` (+5 -2) 📝 `packages/better-auth/src/plugins/two-factor/client.ts` (+1 -1) </details> ### 📄 Description ``` The inferred type of 'baseAuthPlugins' cannot be named without a reference to '../../../../node_modules/better-auth/dist/index-SBjk_96V.mjs'. This is likely not portable. A type annotation is necessary.ts(2742) ``` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixed the two-factor client to import the plugin type from "." instead of "../../plugins/two-factor", resolving the ts(2742) portability error. Also switched additional-fields client type imports to "@better-auth/core" to avoid non-portable inferred types. <sup>Written for commit 4b0021b0ceb18c6eba15283fbd0ac3c45a58c639. Summary will update automatically 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 21:43:03 -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#23432