[PR #5731] [MERGED] fix: add missing userId in listAccounts response #6184

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/5731
Author: @bytaesu
Created: 11/2/2025
Status: Merged
Merged: 11/3/2025
Merged by: @Bekacru

Base: canaryHead: 2025-11-03/fix/list-accounts-missing-userid


📝 Commits (1)

  • 8ae3a1f fix: add missing userId in listAccounts response

📊 Changes

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

View changed files

📝 packages/better-auth/src/api/routes/account.ts (+5 -0)

📄 Description

Closes https://github.com/better-auth/better-auth/issues/5620


Summary by cubic

Adds the missing userId field to the listUserAccounts API response and schema so clients can identify the user for each account. Fixes schema mismatch and prevents client errors when reading account data.

  • Bug Fixes
    • Added userId to the response schema (properties and required).
    • Included userId in the response payload mapping.

Written for commit 8ae3a1fafc. 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/5731 **Author:** [@bytaesu](https://github.com/bytaesu) **Created:** 11/2/2025 **Status:** ✅ Merged **Merged:** 11/3/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `2025-11-03/fix/list-accounts-missing-userid` --- ### 📝 Commits (1) - [`8ae3a1f`](https://github.com/better-auth/better-auth/commit/8ae3a1fafcfb2bcf832bde03f01ba62794e02155) fix: add missing userId in listAccounts response ### 📊 Changes **1 file changed** (+5 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/routes/account.ts` (+5 -0) </details> ### 📄 Description Closes https://github.com/better-auth/better-auth/issues/5620 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds the missing userId field to the listUserAccounts API response and schema so clients can identify the user for each account. Fixes schema mismatch and prevents client errors when reading account data. - **Bug Fixes** - Added userId to the response schema (properties and required). - Included userId in the response payload mapping. <sup>Written for commit 8ae3a1fafcfb2bcf832bde03f01ba62794e02155. 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:50:22 -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#6184