Skip to content

feat(core): add basePath configuration option#24

Merged
halvaradop merged 1 commit intomasterfrom
feat/add-basepath-option
Dec 10, 2025
Merged

feat(core): add basePath configuration option#24
halvaradop merged 1 commit intomasterfrom
feat/add-basepath-option

Conversation

@halvaradop
Copy link
Copy Markdown
Member

Description

This pull request introduces the basePath configuration option to the Aura instance created through the createAuth function.
With this new feature, users can override Aura Auth’s default base path (/auth) and define custom paths that better fit their application structure.

Before
Route handlers were required to live under the /auth base path, depending on the library or framework integrating Aura Auth. For example, in Next.js (App Router), users needed to place their route handler at:

  • /app/auth/[...aura]/route.ts

After
With the new basePath option, users can host and place route handlers anywhere in their backend as supported by their library or framework. In Next.js, examples now include:

  • /app/api/auth/[...aura]/route.ts
  • /app/api/v1/auth/[...aura]/route.ts
  • /app/authentication/[...aura]/route.ts
  • or any other custom API path they define.

This enhancement provides greater flexibility and enables seamless integration into a wider variety of backend and routing structures.

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Dec 9, 2025

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

Project Deployment Preview Comments Updated (UTC)
auth Ready Ready Preview Comment Dec 9, 2025 10:36pm

@halvaradop halvaradop merged commit 165cd84 into master Dec 10, 2025
2 checks passed
@halvaradop halvaradop deleted the feat/add-basepath-option branch December 10, 2025 00:03
@halvaradop halvaradop added enhancement New feature or request feature New functionality labels Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant