[PR #1562] [CLOSED] demo (nextjs): Avoid page refresh on session termination #20764

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1562
Author: @theinfinit
Created: 2/24/2025
Status: Closed

Base: mainHead: demo-terminate-sessions-without-refresh


📝 Commits (3)

  • 2f944e2 demo (nextjs): Avoid page refresh on session termination
  • 75f2493 Appease the machine — lint
  • 1af5f1d Merge branch 'main' into demo-terminate-sessions-without-refresh

📊 Changes

1 file changed (+8 additions, -2 deletions)

View changed files

📝 demo/nextjs/app/dashboard/user-card.tsx (+8 -2)

📄 Description

  • don't refresh when session from other devices is terminated. Instead, update list of active sessions on success
  • refresh happens only when current session is terminated to finish log out

Demo of new behavior

https://github.com/user-attachments/assets/206f4b9f-1b82-4605-bc5d-788aca7477d9


🔄 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/1562 **Author:** [@theinfinit](https://github.com/theinfinit) **Created:** 2/24/2025 **Status:** ❌ Closed **Base:** `main` ← **Head:** `demo-terminate-sessions-without-refresh` --- ### 📝 Commits (3) - [`2f944e2`](https://github.com/better-auth/better-auth/commit/2f944e2826864cc8c7b9e2f108cecbafece2a057) demo (nextjs): Avoid page refresh on session termination - [`75f2493`](https://github.com/better-auth/better-auth/commit/75f2493059409b630a800b90905868c0e68dced4) Appease the machine — lint - [`1af5f1d`](https://github.com/better-auth/better-auth/commit/1af5f1d7e7aa86a2197d04b139fd37aabd48e94c) Merge branch 'main' into demo-terminate-sessions-without-refresh ### 📊 Changes **1 file changed** (+8 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/app/dashboard/user-card.tsx` (+8 -2) </details> ### 📄 Description - don't refresh when session from other devices is terminated. Instead, update list of active sessions on success - refresh happens only when current session is terminated to finish log out ### Demo of new behavior https://github.com/user-attachments/assets/206f4b9f-1b82-4605-bc5d-788aca7477d9 --- <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 19:54:42 -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#20764