[PR #655] [MERGED] fix: cleanup existing session, on set-session if a session already exists for the same user #3417

Closed
opened 2026-03-13 10:53:05 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/655
Author: @Bekacru
Created: 11/25/2024
Status: Merged
Merged: 11/26/2024
Merged by: @Bekacru

Base: mainHead: fix/session


📝 Commits (6)

  • 82a3c97 fix: delete existing session, on set-session if a session already exist for the same user
  • 4d7387b Merge branch 'main' into fix/session
  • b3728e0 fix: failing on missing headers
  • af2a9fd fix: only delete if the token isn't the same
  • 4f369b5 fix: only delete if the token isn't the same
  • 38533a9 Merge branch 'main' into fix/session

📊 Changes

3 files changed (+21 additions, -0 deletions)

View changed files

📝 packages/better-auth/src/api/routes/session-api.test.ts (+2 -0)
📝 packages/better-auth/src/api/routes/session.ts (+1 -0)
📝 packages/better-auth/src/cookies/index.ts (+18 -0)

📄 Description

closes #393


🔄 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/655 **Author:** [@Bekacru](https://github.com/Bekacru) **Created:** 11/25/2024 **Status:** ✅ Merged **Merged:** 11/26/2024 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `fix/session` --- ### 📝 Commits (6) - [`82a3c97`](https://github.com/better-auth/better-auth/commit/82a3c9786bca58ad3ce5dfc6ffc1987c780bd460) fix: delete existing session, on set-session if a session already exist for the same user - [`4d7387b`](https://github.com/better-auth/better-auth/commit/4d7387bb6e047ed6a2e0c4494812d491e47dbd1d) Merge branch 'main' into fix/session - [`b3728e0`](https://github.com/better-auth/better-auth/commit/b3728e0af68c57a2f60b3b2b33c68698199bf32d) fix: failing on missing headers - [`af2a9fd`](https://github.com/better-auth/better-auth/commit/af2a9fd1c8f121122b698ab11dfe5f2bbae0d7e9) fix: only delete if the token isn't the same - [`4f369b5`](https://github.com/better-auth/better-auth/commit/4f369b5c4810d69b2ccd7bbd41fcefc2959ea524) fix: only delete if the token isn't the same - [`38533a9`](https://github.com/better-auth/better-auth/commit/38533a9dc97273371989417366e042e797398a9b) Merge branch 'main' into fix/session ### 📊 Changes **3 files changed** (+21 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/session-api.test.ts` (+2 -0) 📝 `packages/better-auth/src/api/routes/session.ts` (+1 -0) 📝 `packages/better-auth/src/cookies/index.ts` (+18 -0) </details> ### 📄 Description closes #393 --- <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 10:53:05 -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#3417