[PR #3795] [CLOSED] fix(client): revalidate session after expire #21911

Closed
opened 2026-04-15 20:41:38 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/3795
Author: @himself65
Created: 8/5/2025
Status: Closed

Base: canaryHead: himself65/2025/08/04/swr


📝 Commits (2)

  • 070c834 fix: revalidate session after expire
  • 2fa1999 Update packages/better-auth/src/client/session-atom.ts

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/session-atom.ts (+10 -0)

📄 Description

Related: https://github.com/better-auth/better-auth/issues/2715

checklist:

  • Unit Test

Summary by cubic

Added logic to automatically revalidate the session after it expires by resetting the session signal.


🔄 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/3795 **Author:** [@himself65](https://github.com/himself65) **Created:** 8/5/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `himself65/2025/08/04/swr` --- ### 📝 Commits (2) - [`070c834`](https://github.com/better-auth/better-auth/commit/070c8348e35d358053f375661d9a98be364f9ad6) fix: revalidate session after expire - [`2fa1999`](https://github.com/better-auth/better-auth/commit/2fa1999eef72a06d81f14568f3499aedb769a4a8) Update packages/better-auth/src/client/session-atom.ts ### 📊 Changes **1 file changed** (+10 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/session-atom.ts` (+10 -0) </details> ### 📄 Description Related: https://github.com/better-auth/better-auth/issues/2715 checklist: - [ ] Unit Test <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added logic to automatically revalidate the session after it expires by resetting the session signal. <!-- 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 20:41:38 -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#21911