[PR #1152] [CLOSED] Adding possible config path /auth #3658

Closed
opened 2026-03-13 11:03:30 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1152
Author: @Ymirke
Created: 1/7/2025
Status: Closed

Base: nextHead: main


📝 Commits (2)

  • 0a3b573 Adding possible config path /auth
  • f53f805 Added new auth.ts file placement to documentation

📊 Changes

2 files changed (+2 additions, -0 deletions)

View changed files

📝 docs/content/docs/installation.mdx (+1 -0)
📝 packages/cli/src/utils/get-config.ts (+1 -0)

📄 Description

I'm currently working on a project that will need to extend better-auth a bit, so I would like to have everything related to auth under src/auth, and having the instance exported from src/auth/auth.ts.

I'm currently doing that, but exporting better-auth instance from /src/auth.ts.

Unsure if there are any implications to consider with this.


🔄 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/1152 **Author:** [@Ymirke](https://github.com/Ymirke) **Created:** 1/7/2025 **Status:** ❌ Closed **Base:** `next` ← **Head:** `main` --- ### 📝 Commits (2) - [`0a3b573`](https://github.com/better-auth/better-auth/commit/0a3b5736347c86d03c6b6a008cdf8fd658bb2f21) Adding possible config path /auth - [`f53f805`](https://github.com/better-auth/better-auth/commit/f53f8053bfdb4d40b08bc7653affb826373f055f) Added new auth.ts file placement to documentation ### 📊 Changes **2 files changed** (+2 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/installation.mdx` (+1 -0) 📝 `packages/cli/src/utils/get-config.ts` (+1 -0) </details> ### 📄 Description I'm currently working on a project that will need to extend better-auth a bit, so I would like to have everything related to auth under `src/auth`, and having the instance exported from `src/auth/auth.ts`. I'm currently doing that, but exporting better-auth instance from /src/auth.ts. Unsure if there are any implications to consider with this. --- <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-03-13 11:03:30 -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#3658