Compatible with BETTER_AUTH_URL ending with / #538

Closed
opened 2026-03-13 07:51:45 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @TinsFox on GitHub (Jan 8, 2025).

Is this suited for github?

  • Yes, this is suited for github

When I deployed on Vercel, I filled in BETTER_AUTH_URL with an address ending with /, such as https://demo.better-auth.com/ This will cause some errors, as shown below

image

Describe the solution you'd like

I hope this writing method can be internally compatible, because when the browser copies the address, it will end with / by default. If it is compatible, it will be more convenient for users

Describe alternatives you've considered

Maybe you need to construct baseUrl on better-call

Additional context

No response

Originally created by @TinsFox on GitHub (Jan 8, 2025). ### Is this suited for github? - [X] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. When I deployed on Vercel, I filled in BETTER_AUTH_URL with an address ending with `/`, such as https://demo.better-auth.com/ This will cause some errors, as shown below <img width="761" alt="image" src="https://github.com/user-attachments/assets/a2652796-6e15-48b1-a6b7-01dbce4cbee0" /> ### Describe the solution you'd like I hope this writing method can be internally compatible, because when the browser copies the address, it will end with `/` by default. If it is compatible, it will be more convenient for users ### Describe alternatives you've considered Maybe you need to construct baseUrl on better-call ### Additional context _No response_
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#538