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

Closed
opened 2026-04-13 09:28:19 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/5731

State: closed
Merged: Yes


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.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5731 **State:** closed **Merged:** Yes --- 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. -->
GiteaMirror added the pull-request label 2026-04-13 09:28:19 -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#14431