[PR #8717] [MERGED] fix(client): handle throw:true in session refresh #25069

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8717
Author: @himself65
Created: 3/20/2026
Status: Merged
Merged: 3/20/2026
Merged by: @himself65

Base: mainHead: v1.5.7-staging


📝 Commits (1)

  • 8b974bc fix(client): handle throw:true in session refresh (#8610)

📊 Changes

2 files changed (+117 additions, -4 deletions)

View changed files

📝 packages/better-auth/src/client/session-refresh.test.ts (+97 -0)
📝 packages/better-auth/src/client/session-refresh.ts (+20 -4)

📄 Description

Summary

  • Cherry-pick of #8610 from canary to main
  • Fixes throw: true option not being properly handled during session refresh in the client

Test plan

  • session-refresh.test.ts passes (17/17 tests)

🔄 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/8717 **Author:** [@himself65](https://github.com/himself65) **Created:** 3/20/2026 **Status:** ✅ Merged **Merged:** 3/20/2026 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `main` ← **Head:** `v1.5.7-staging` --- ### 📝 Commits (1) - [`8b974bc`](https://github.com/better-auth/better-auth/commit/8b974bc5d9ba75f5dd0c9dbfbc8b9a28387d2124) fix(client): handle `throw:true` in session refresh (#8610) ### 📊 Changes **2 files changed** (+117 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/session-refresh.test.ts` (+97 -0) 📝 `packages/better-auth/src/client/session-refresh.ts` (+20 -4) </details> ### 📄 Description ## Summary - Cherry-pick of #8610 from canary to main - Fixes `throw: true` option not being properly handled during session refresh in the client ## Test plan - [x] `session-refresh.test.ts` passes (17/17 tests) --- <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:42:50 -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#25069