[PR #6892] [MERGED] fix(core): add explicit type for trustedOrigins callback parameter #6949

Closed
opened 2026-03-13 13:18:41 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: fix/trusted-origins-type


📝 Commits (2)

  • b15df5c fix: types
  • 6781891 Merge branch 'canary' into fix/trusted-origins-type

📊 Changes

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

View changed files

📝 packages/better-auth/src/auth/trusted-origins.test.ts (+1 -1)

📄 Description

Summary by cubic

Explicitly typed the trustedOrigins callback parameter as Request | undefined in the dynamic trusted origins test to align with the function’s signature and improve type safety. This prevents type errors and clarifies behavior when the request is absent.

Written for commit 6781891e16. 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/6892 **Author:** [@Paola3stefania](https://github.com/Paola3stefania) **Created:** 12/20/2025 **Status:** ✅ Merged **Merged:** 12/20/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/trusted-origins-type` --- ### 📝 Commits (2) - [`b15df5c`](https://github.com/better-auth/better-auth/commit/b15df5cfb4efe6cf4fc61a3a85e54104875cf43b) fix: types - [`6781891`](https://github.com/better-auth/better-auth/commit/6781891e1611518f862dd065fe13459c9cb75d71) Merge branch 'canary' into fix/trusted-origins-type ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/auth/trusted-origins.test.ts` (+1 -1) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Explicitly typed the trustedOrigins callback parameter as Request | undefined in the dynamic trusted origins test to align with the function’s signature and improve type safety. This prevents type errors and clarifies behavior when the request is absent. <sup>Written for commit 6781891e1611518f862dd065fe13459c9cb75d71. 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-03-13 13:18:41 -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#6949