[Docs] Update to include adding baseurl to server side Better Auth #2537

Closed
opened 2026-03-13 10:01:24 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @MariuzM on GitHub (Dec 15, 2025).

Is this suited for github?

  • Yes, this is suited for github

Recently in one of the projects i started to get redirect_url_mismatch when trying to login via google social login. Then used ChatGPT it gave suggestion to add baseurl to the server, but i could not find this information in the documentation so maybe its worth adding this case?

Also to note other projects currently don’t have this issue even tho they don’t have baseurl setup in server.

Describe the solution you'd like

Update documentation

Describe alternatives you've considered

N/A

Additional context

No response

Originally created by @MariuzM on GitHub (Dec 15, 2025). ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Recently in one of the projects i started to get `redirect_url_mismatch` when trying to login via google social login. Then used ChatGPT it gave suggestion to add `baseurl` to the server, but i could not find this information in the documentation so maybe its worth adding this case? Also to note other projects currently don’t have this issue even tho they don’t have `baseurl` setup in server. ### Describe the solution you'd like Update documentation ### Describe alternatives you've considered N/A ### Additional context _No response_
GiteaMirror added the documentation label 2026-03-13 10:01:24 -05:00
Author
Owner

@Sameer-saifi19 commented on GitHub (Dec 16, 2025):

After reviewing the docs, I noticed that oAuthProxy is documented as a solution for dev/preview environments where redirect URLs cannot be known in advance.

However, it’s still unclear from the docs that:

  • When baseURL is not explicitly set, OAuth relies on URL inference
  • Failed inference can lead to redirect_uri_mismatch errors (especially with Google)
  • oAuthProxy is a workaround, not a replacement for setting baseURL in standard setups

It might help to add a short note in the Google OAuth or base configuration docs explaining:

  • When baseURL should be explicitly set
  • When oAuthProxy is actually needed
  • Why some projects work without baseURL and others don’t

Can i work on this ?

@Sameer-saifi19 commented on GitHub (Dec 16, 2025): After reviewing the docs, I noticed that `oAuthProxy` is documented as a solution for dev/preview environments where redirect URLs cannot be known in advance. However, it’s still unclear from the docs that: - When `baseURL` is not explicitly set, OAuth relies on URL inference - Failed inference can lead to `redirect_uri_mismatch` errors (especially with Google) - `oAuthProxy` is a workaround, not a replacement for setting `baseURL` in standard setups It might help to add a short note in the Google OAuth or base configuration docs explaining: - When `baseURL` should be explicitly set - When `oAuthProxy` is actually needed - Why some projects work without `baseURL` and others don’t Can i work on this ?
Author
Owner

@GautamBytes commented on GitHub (Dec 19, 2025):

Looking into it!

@GautamBytes commented on GitHub (Dec 19, 2025): Looking into it!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#2537