[GH-ISSUE #4686] Configurable route paths #18651

Closed
opened 2026-04-15 17:12:51 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @ethnt on GitHub (Sep 15, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/4686

Originally assigned to: @himself65 on GitHub.

Is this suited for github?

  • Yes, this is suited for github

No response

Describe the solution you'd like

I'd like to be able to configure the route paths that Better Auth uses — for example, I'd like to use POST /login instead of POST /api/auth/sign-in/email.

Describe alternatives you've considered

I'd considered custom Hono handlers to redirect requests to Better Auth, but that's hacky at best and error-prone at worst.

Additional context

No response

Originally created by @ethnt on GitHub (Sep 15, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/4686 Originally assigned to: @himself65 on GitHub. ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. _No response_ ### Describe the solution you'd like I'd like to be able to configure the route paths that Better Auth uses — for example, I'd like to use `POST /login` instead of `POST /api/auth/sign-in/email`. ### Describe alternatives you've considered I'd considered custom Hono handlers to redirect requests to Better Auth, but that's hacky at best and error-prone at worst. ### Additional context _No response_
GiteaMirror added the lockedenhancement labels 2026-04-15 17:12:51 -05:00
Author
Owner

@himself65 commented on GitHub (Sep 16, 2025):

this is related to better plugin design, we are working on it

<!-- gh-comment-id:3294678034 --> @himself65 commented on GitHub (Sep 16, 2025): this is related to better plugin design, we are working on it
Author
Owner

@himself65 commented on GitHub (Sep 18, 2025):

This might be related to https://github.com/better-auth/better-auth/issues/3595.

Right now, you have to redirect endpoints manually. But I'm thinking of a way to make an alias happen

<!-- gh-comment-id:3309732481 --> @himself65 commented on GitHub (Sep 18, 2025): This might be related to https://github.com/better-auth/better-auth/issues/3595. Right now, you have to redirect endpoints manually. But I'm thinking of a way to make an alias happen
Author
Owner

@dosubot[bot] commented on GitHub (Dec 18, 2025):

Hi, @ethnt. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested configurable route paths in Better Auth to replace default endpoints like POST /api/auth/sign-in/email with simpler ones such as POST /login.
  • The current workarounds for this are unreliable, and you are seeking a built-in solution.
  • The maintainer acknowledged this need relates to better plugin design and referenced ongoing work in that area.
  • A related issue (#3595) was mentioned, with consideration of implementing route aliasing to address your request.
  • The issue remains unresolved with no recent updates.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of better-auth by commenting here to keep the discussion open.
  • If I do not hear from you within 7 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

<!-- gh-comment-id:3671034729 --> @dosubot[bot] commented on GitHub (Dec 18, 2025): Hi, @ethnt. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested configurable route paths in Better Auth to replace default endpoints like POST /api/auth/sign-in/email with simpler ones such as POST /login. - The current workarounds for this are unreliable, and you are seeking a built-in solution. - The maintainer acknowledged this need relates to better plugin design and referenced ongoing work in that area. - A related issue (#3595) was mentioned, with consideration of implementing route aliasing to address your request. - The issue remains unresolved with no recent updates. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of better-auth by commenting here to keep the discussion open. - If I do not hear from you within 7 days, this issue will be automatically closed. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#18651