[PR #6907] [MERGED] chore(demo): redirect to home when current session is removed #6958

Closed
opened 2026-03-13 13:19:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6907
Author: @bytaesu
Created: 12/20/2025
Status: Merged
Merged: 12/23/2025
Merged by: @himself65

Base: canaryHead: 2025-12-20/chore/redirect-when-no-session


📝 Commits (3)

  • 63b0862 redirect to home when no session
  • 97d77e8 Revert "redirect to home when no session"
  • 3a97696 redirect to home when currentSession is removed

📊 Changes

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

View changed files

📝 demo/nextjs/app/dashboard/_components/user-card.tsx (+3 -0)

📄 Description

Fixed a UI bug when current session is removed from deviceSession


Summary by cubic

Redirect to "/" when the current session is removed, preventing the dashboard user card from breaking. After successfully removing the active session, we immediately navigate home.

Written for commit 3a97696886. 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/6907 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 12/20/2025 **Status:** ✅ Merged **Merged:** 12/23/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2025-12-20/chore/redirect-when-no-session` --- ### 📝 Commits (3) - [`63b0862`](https://github.com/better-auth/better-auth/commit/63b08621453023f0ca5871d7b147b37e253ca172) redirect to home when no session - [`97d77e8`](https://github.com/better-auth/better-auth/commit/97d77e8ca9d8f44fd24db15741183ba8d1c9499f) Revert "redirect to home when no session" - [`3a97696`](https://github.com/better-auth/better-auth/commit/3a976968869ed2a5cc7f164aece4420632bb3c1c) redirect to home when currentSession is removed ### 📊 Changes **1 file changed** (+3 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `demo/nextjs/app/dashboard/_components/user-card.tsx` (+3 -0) </details> ### 📄 Description Fixed a UI bug when current session is removed from `deviceSession` <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Redirect to "/" when the current session is removed, preventing the dashboard user card from breaking. After successfully removing the active session, we immediately navigate home. <sup>Written for commit 3a976968869ed2a5cc7f164aece4420632bb3c1c. 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 13:19:06 -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#6958