[PR #703] [CLOSED] feat: allow pass trusted origin as function #3440

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/703
Author: @himself65
Created: 11/29/2024
Status: Closed

Base: mainHead: himself65/20241229/allow


📝 Commits (1)

  • c046e86 feat: allow pass trusted origin as function

📊 Changes

3 files changed (+17 additions, -8 deletions)

View changed files

📝 packages/better-auth/src/init.ts (+14 -5)
📝 packages/better-auth/src/types/options.ts (+2 -2)
📝 packages/better-auth/src/utils/callback-url.ts (+1 -1)

📄 Description

This would be helpful if I have like vecel deployment and there're many subdomain, otherwise the social provider callback url will not working as expected


🔄 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/703 **Author:** [@himself65](https://github.com/himself65) **Created:** 11/29/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `himself65/20241229/allow` --- ### 📝 Commits (1) - [`c046e86`](https://github.com/better-auth/better-auth/commit/c046e86cc932131dd1fb3c9ca02d7356095d048c) feat: allow pass trusted origin as function ### 📊 Changes **3 files changed** (+17 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/init.ts` (+14 -5) 📝 `packages/better-auth/src/types/options.ts` (+2 -2) 📝 `packages/better-auth/src/utils/callback-url.ts` (+1 -1) </details> ### 📄 Description This would be helpful if I have like vecel deployment and there're many subdomain, otherwise the social provider callback url will not working as expected --- <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-03-13 10:53:51 -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#3440