[PR #4602] [MERGED] fix: correct MongoDB adapter import path in CLI #13723

Closed
opened 2026-04-13 09:06:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4602
Author: @aajeeth-m
Created: 9/12/2025
Status: Merged
Merged: 9/12/2025
Merged by: @himself65

Base: canaryHead: fix-mongodb-adapter-import


📝 Commits (3)

  • 6187e34 fix: correct MongoDB adapter import path in CLI
  • eb14532 fix: apply linter formatting
  • e8c4bc9 Merge branch 'better-auth:canary' into fix-mongodb-adapter-import

📊 Changes

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

View changed files

📝 packages/cli/src/generators/auth-config.ts (+3 -3)

📄 Description

The CLI was generating imports with /mongo instead of /mongodb for the MongoDB adapter, causing import errors. This fixes the import path to match the actual package structure.


Summary by cubic

Fixes the CLI to generate the correct MongoDB adapter import path in auth config. Replaces better-auth/adapters/mongo with better-auth/adapters/mongodb to prevent import errors when selecting MongoDB.


🔄 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/4602 **Author:** [@aajeeth-m](https://github.com/aajeeth-m) **Created:** 9/12/2025 **Status:** ✅ Merged **Merged:** 9/12/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix-mongodb-adapter-import` --- ### 📝 Commits (3) - [`6187e34`](https://github.com/better-auth/better-auth/commit/6187e340751279fdc8d0732a9c70a463af4eb375) fix: correct MongoDB adapter import path in CLI - [`eb14532`](https://github.com/better-auth/better-auth/commit/eb145327c35358d9925f7e93aa876ba417c33e06) fix: apply linter formatting - [`e8c4bc9`](https://github.com/better-auth/better-auth/commit/e8c4bc954a6ab51e623f9445e8230e007f51e26f) Merge branch 'better-auth:canary' into fix-mongodb-adapter-import ### 📊 Changes **1 file changed** (+3 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/cli/src/generators/auth-config.ts` (+3 -3) </details> ### 📄 Description The CLI was generating imports with `/mongo` instead of `/mongodb` for the MongoDB adapter, causing import errors. This fixes the import path to match the actual package structure. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Fixes the CLI to generate the correct MongoDB adapter import path in auth config. Replaces better-auth/adapters/mongo with better-auth/adapters/mongodb to prevent import errors when selecting MongoDB. <!-- 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-13 09:06:18 -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#13723