[PR #6151] [MERGED] chore(demo): update auth instance to work with oauth-proxy #32086

Closed
opened 2026-04-17 22:57:03 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6151
Author: @bytaesu
Created: 11/21/2025
Status: Merged
Merged: 11/21/2025
Merged by: @himself65

Base: canaryHead: 2025-11-21/chore/demo-auth-instance


📝 Commits (2)

  • e7a5609 fix: update auth instace to work with oauth-proxy
  • 8bd8dfe Update demo/nextjs/lib/auth.ts

📊 Changes

1 file changed (+11 additions, -23 deletions)

View changed files

📝 demo/nextjs/lib/auth.ts (+11 -23)

📄 Description

Summary by cubic

Updated the demo auth config to work with oauth-proxy in production. Simplifies URL/cookie handling and expands trusted origins.

  • Refactors
    • Configure oAuthProxy with productionURL set to https://demo.better-auth.com.
    • Remove Vercel-specific baseURL/cookieDomain logic; rely on BETTER_AUTH_URL env.
    • Drop crossSubDomainCookies settings and expand trustedOrigins to *.better-auth.com and Vercel preview URLs.

Written for commit 8bd8dfe25c. 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/6151 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/21/2025 **Status:** ✅ Merged **Merged:** 11/21/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2025-11-21/chore/demo-auth-instance` --- ### 📝 Commits (2) - [`e7a5609`](https://github.com/better-auth/better-auth/commit/e7a560923d3afb1a41894299f03d39e72f44805e) fix: update auth instace to work with oauth-proxy - [`8bd8dfe`](https://github.com/better-auth/better-auth/commit/8bd8dfe25c116cc9dd813e4b0bb81dbe312fa0ee) Update demo/nextjs/lib/auth.ts ### 📊 Changes **1 file changed** (+11 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/lib/auth.ts` (+11 -23) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Updated the demo auth config to work with oauth-proxy in production. Simplifies URL/cookie handling and expands trusted origins. - **Refactors** - Configure oAuthProxy with productionURL set to https://demo.better-auth.com. - Remove Vercel-specific baseURL/cookieDomain logic; rely on BETTER_AUTH_URL env. - Drop crossSubDomainCookies settings and expand trustedOrigins to *.better-auth.com and Vercel preview URLs. <sup>Written for commit 8bd8dfe25c116cc9dd813e4b0bb81dbe312fa0ee. 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 22:57:03 -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#32086