[PR #6878] [MERGED] docs: add baseURL configuration warning to Google provider #32541

Closed
opened 2026-04-17 23:20:09 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6878
Author: @GautamBytes
Created: 12/19/2025
Status: Merged
Merged: 12/19/2025
Merged by: @himself65

Base: canaryHead: docs/google-provider-baseurl


📝 Commits (1)

  • 61efc2f docs: add baseURL warning to google provider page

📊 Changes

1 file changed (+18 additions, -0 deletions)

View changed files

📝 docs/content/docs/authentication/google.mdx (+18 -0)

📄 Description

Fixes #6775

Description

Added a warning and configuration example to the Google provider documentation.

This addresses the common redirect_uri_mismatch error users encounter in production when the baseURL is not explicitly set. The documentation now clarifies that Better Auth requires the baseURL (or BETTER_AUTH_URL env var) to construct the correct callback URL sent to Google.


Summary by cubic

Add a baseURL configuration warning and example to the Google provider docs to prevent redirect_uri_mismatch errors in production. Shows how to set BETTER_AUTH_URL or pass baseURL directly so the correct OAuth callback is sent to Google.

Written for commit 61efc2f7fd. Summary will update automatically on new commits.


🔄 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/6878 **Author:** [@GautamBytes](https://github.com/GautamBytes) **Created:** 12/19/2025 **Status:** ✅ Merged **Merged:** 12/19/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `docs/google-provider-baseurl` --- ### 📝 Commits (1) - [`61efc2f`](https://github.com/better-auth/better-auth/commit/61efc2f7fd02ffac9488c2c4bd390c9a29027608) docs: add baseURL warning to google provider page ### 📊 Changes **1 file changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/authentication/google.mdx` (+18 -0) </details> ### 📄 Description Fixes #6775 ### Description Added a warning and configuration example to the Google provider documentation. This addresses the common `redirect_uri_mismatch` error users encounter in production when the `baseURL` is not explicitly set. The documentation now clarifies that Better Auth requires the `baseURL` (or `BETTER_AUTH_URL` env var) to construct the correct callback URL sent to Google. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add a baseURL configuration warning and example to the Google provider docs to prevent redirect_uri_mismatch errors in production. Shows how to set BETTER_AUTH_URL or pass baseURL directly so the correct OAuth callback is sent to Google. <sup>Written for commit 61efc2f7fd02ffac9488c2c4bd390c9a29027608. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <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-04-17 23:20:09 -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#32541