[PR #1269] [MERGED] Bugfix: Expo client with cookieCache enabled. #3726

Closed
opened 2026-03-13 11:08:26 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1269
Author: @kzlar
Created: 1/23/2025
Status: Merged
Merged: 1/23/2025
Merged by: @Bekacru

Base: mainHead: bug/expo-client-with-cookie-cache


📝 Commits (1)

  • 5a2d797 Bugfix: Expo client with cookieCache enabled.

📊 Changes

2 files changed (+109 additions, -6 deletions)

View changed files

📝 packages/expo/src/client.ts (+18 -3)
📝 packages/expo/src/expo.test.ts (+91 -3)

📄 Description

In cases where the session_data cookie is expired, but session_token is not, the server returns only a newly signed session_data.
The current implementation causes the existing session_token to be erased, causing a log-out.
This commit fixes it, along with test cases to verify.


🔄 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/1269 **Author:** [@kzlar](https://github.com/kzlar) **Created:** 1/23/2025 **Status:** ✅ Merged **Merged:** 1/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `bug/expo-client-with-cookie-cache` --- ### 📝 Commits (1) - [`5a2d797`](https://github.com/better-auth/better-auth/commit/5a2d797c71565b30ded95a25290f726826cd3931) Bugfix: Expo client with cookieCache enabled. ### 📊 Changes **2 files changed** (+109 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `packages/expo/src/client.ts` (+18 -3) 📝 `packages/expo/src/expo.test.ts` (+91 -3) </details> ### 📄 Description In cases where the session_data cookie is expired, but session_token is not, the server returns only a newly signed session_data. The current implementation causes the existing session_token to be erased, causing a log-out. This commit fixes it, along with test cases to verify. --- <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 11:08:26 -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#3726