[PR #6888] [MERGED] test(auth): handle undefined request in trustedOrigins test #23846

Closed
opened 2026-04-15 22:01:14 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

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

Base: canaryHead: fix/trusted-origins-undefined-request


📝 Commits (1)

📊 Changes

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

View changed files

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

📄 Description

Summary by cubic

Handle undefined request in trustedOrigins test by returning an empty array. This prevents URL parsing errors and stabilizes the dynamic trustedOrigins logic.

Written for commit ec2e8b6123. 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/6888 **Author:** [@Paola3stefania](https://github.com/Paola3stefania) **Created:** 12/19/2025 **Status:** ✅ Merged **Merged:** 12/19/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `fix/trusted-origins-undefined-request` --- ### 📝 Commits (1) - [`ec2e8b6`](https://github.com/better-auth/better-auth/commit/ec2e8b61234cdbc587723b098e613cc9bf71de8f) fix tests ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/auth/trusted-origins.test.ts` (+1 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Handle undefined request in trustedOrigins test by returning an empty array. This prevents URL parsing errors and stabilizes the dynamic trustedOrigins logic. <sup>Written for commit ec2e8b61234cdbc587723b098e613cc9bf71de8f. 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-15 22:01:14 -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#23846