[PR #6890] [MERGED] doc(auth): clarify trustedOrigins callback request parameter #15194

Closed
opened 2026-04-13 09:52:56 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6890
Author: @Paola3stefania
Created: 12/19/2025
Status: Merged
Merged: 12/20/2025
Merged by: @Bekacru

Base: canaryHead: doc/trusted-origins-dynamic-callback


📝 Commits (1)

📊 Changes

2 files changed (+16 additions, -3 deletions)

View changed files

📝 docs/content/docs/plugins/sso.mdx (+6 -1)
📝 docs/content/docs/reference/options.mdx (+10 -2)

📄 Description

Summary by cubic

Clarified trustedOrigins callback docs: the request parameter can be undefined during initialization and direct auth.api calls, and the examples now include a guard with default origins. Added an info callout and updated SSO and options samples to help avoid runtime errors.

Written for commit a30dbf9e96. 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/6890 **Author:** [@Paola3stefania](https://github.com/Paola3stefania) **Created:** 12/19/2025 **Status:** ✅ Merged **Merged:** 12/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `doc/trusted-origins-dynamic-callback` --- ### 📝 Commits (1) - [`a30dbf9`](https://github.com/better-auth/better-auth/commit/a30dbf9e96e3ddfc40bef21823d2c9c38d4aea5b) feat: add request docu ### 📊 Changes **2 files changed** (+16 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/plugins/sso.mdx` (+6 -1) 📝 `docs/content/docs/reference/options.mdx` (+10 -2) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Clarified trustedOrigins callback docs: the request parameter can be undefined during initialization and direct auth.api calls, and the examples now include a guard with default origins. Added an info callout and updated SSO and options samples to help avoid runtime errors. <sup>Written for commit a30dbf9e96e3ddfc40bef21823d2c9c38d4aea5b. 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-13 09:52:56 -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#15194