[PR #5410] [MERGED] v1.3.28 #31591

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5410
Author: @himself65
Created: 10/19/2025
Status: Merged
Merged: 10/19/2025
Merged by: @himself65

Base: mainHead: v1.3.28


📝 Commits (4)

📊 Changes

4 files changed (+204 additions, -14 deletions)

View changed files

📝 docs/app/blog/_components/stat-field.tsx (+1 -1)
📝 packages/core/src/env/color-depth.ts (+5 -4)
📝 packages/expo/src/client.ts (+128 -9)
📝 packages/expo/src/expo.test.ts (+70 -0)

📄 Description

Summary by cubic

Fixes infinite refetch loops in the Expo client by only reacting to better-auth session cookies that actually change. Adds a cookiePrefix option for custom cookie names, and prevents blog page overflow.

  • New Features

    • cookiePrefix option to match custom session cookie names (supports "__Secure-" and empty prefix).
  • Bug Fixes

    • Expo: filter Set-Cookie to session-related better-auth cookies and compare values before notifying $sessionSignal to avoid refetch loops.
    • Docs: add max-width to StarField to stop blog page overflow.
    • Core: remove process.platform check in color depth detection for Edge runtime compatibility.

🔄 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/5410 **Author:** [@himself65](https://github.com/himself65) **Created:** 10/19/2025 **Status:** ✅ Merged **Merged:** 10/19/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `v1.3.28` --- ### 📝 Commits (4) - [`5d68bcf`](https://github.com/better-auth/better-auth/commit/5d68bcf19b2f3382ad2e72e84cdce0f81c4e1d5d) fix(expo): set-header retrigger `$sessionSignal` (#5393) - [`9329824`](https://github.com/better-auth/better-auth/commit/93298246e3894722b88fe1fe4d332f10546970b8) docs: prevent blog page overflow (#5405) - [`812b30b`](https://github.com/better-auth/better-auth/commit/812b30b069bd340cdf95e63c215f2c9fa9e2d784) fix: add optional chaining for process.platform (#5390) - [`1371585`](https://github.com/better-auth/better-auth/commit/137158532c778049c253abe16beaa8be5aea7ce1) chore: remove process.platform check (#5395) ### 📊 Changes **4 files changed** (+204 additions, -14 deletions) <details> <summary>View changed files</summary> 📝 `docs/app/blog/_components/stat-field.tsx` (+1 -1) 📝 `packages/core/src/env/color-depth.ts` (+5 -4) 📝 `packages/expo/src/client.ts` (+128 -9) 📝 `packages/expo/src/expo.test.ts` (+70 -0) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixes infinite refetch loops in the Expo client by only reacting to better-auth session cookies that actually change. Adds a cookiePrefix option for custom cookie names, and prevents blog page overflow. - **New Features** - cookiePrefix option to match custom session cookie names (supports "__Secure-" and empty prefix). - **Bug Fixes** - Expo: filter Set-Cookie to session-related better-auth cookies and compare values before notifying $sessionSignal to avoid refetch loops. - Docs: add max-width to StarField to stop blog page overflow. - Core: remove process.platform check in color depth detection for Edge runtime compatibility. <!-- 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:29:23 -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#31591