[PR #5761] [MERGED] fix: trigger use session on revoke sessions #6207

Closed
opened 2026-03-13 12:51:04 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5761
Author: @Bekacru
Created: 11/4/2025
Status: Merged
Merged: 11/5/2025
Merged by: @himself65

Base: canaryHead: fix/client


📝 Commits (1)

  • 15575d4 fix: trigger use session on revoke sessions

📊 Changes

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

View changed files

📝 packages/better-auth/src/client/config.ts (+3 -1)

📄 Description

closes #5741


Summary by cubic

Added /revoke-sessions and /revoke-session to the paths that trigger useSession in the client config. This refreshes the session after revocation so the UI updates immediately and avoids stale auth state.

Written for commit 15575d4eae. 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/5761 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/4/2025 **Status:** ✅ Merged **Merged:** 11/5/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `fix/client` --- ### 📝 Commits (1) - [`15575d4`](https://github.com/better-auth/better-auth/commit/15575d4eae5ab891357fd9dc4390db33269b768b) fix: trigger use session on revoke sessions ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/client/config.ts` (+3 -1) </details> ### 📄 Description closes #5741 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added /revoke-sessions and /revoke-session to the paths that trigger useSession in the client config. This refreshes the session after revocation so the UI updates immediately and avoids stale auth state. <sup>Written for commit 15575d4eae5ab891357fd9dc4390db33269b768b. 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-03-13 12:51:04 -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#6207