[PR #6749] [MERGED] fix: revert token masking in listSessions route #6863

Closed
opened 2026-03-13 13:14:20 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6749
Author: @bytaesu
Created: 12/14/2025
Status: Merged
Merged: 12/15/2025
Merged by: @himself65

Base: canaryHead: 2025-12-14/fix/revert-list-sessions


📝 Commits (1)

📊 Changes

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

View changed files

📝 packages/better-auth/src/api/routes/session.ts (+3 -10)

📄 Description

Summary by cubic

Reverted token masking in the listSessions route, returning active sessions with their original token field to restore expected behavior for clients. Expired sessions are still filtered out.

Written for commit d09ec35fec. 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/6749 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 12/14/2025 **Status:** ✅ Merged **Merged:** 12/15/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `2025-12-14/fix/revert-list-sessions` --- ### 📝 Commits (1) - [`d09ec35`](https://github.com/better-auth/better-auth/commit/d09ec35fecb335d6193569116415ddc419d57d65) revert masking token ### 📊 Changes **1 file changed** (+3 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/session.ts` (+3 -10) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Reverted token masking in the listSessions route, returning active sessions with their original token field to restore expected behavior for clients. Expired sessions are still filtered out. <sup>Written for commit d09ec35fecb335d6193569116415ddc419d57d65. 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:14:20 -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#6863