[PR #6244] feat: list accounts should include idToken #6543

Open
opened 2026-03-13 13:02:43 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6244
Author: @AlexErrant
Created: 11/23/2025
Status: 🔄 Open

Base: canaryHead: expose_idToken


📝 Commits (2)

📊 Changes

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

View changed files

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

📄 Description

Similar to https://github.com/better-auth/better-auth/pull/1081


Summary by cubic

Updated /list-accounts to include a nullable idToken for each account in the response. This lets clients access the provider token directly without an extra request.

Written for commit fa74054b2c. 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/6244 **Author:** [@AlexErrant](https://github.com/AlexErrant) **Created:** 11/23/2025 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `expose_idToken` --- ### 📝 Commits (2) - [`3b362f1`](https://github.com/better-auth/better-auth/commit/3b362f16a0cc9279d7ad85172073980a1deeae3c) return `idToken` in `/list-accounts` - [`fa74054`](https://github.com/better-auth/better-auth/commit/fa74054b2c565c6ba45b8e7fd8151b3b8716e379) nullable: true ### 📊 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 Similar to https://github.com/better-auth/better-auth/pull/1081 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Updated /list-accounts to include a nullable idToken for each account in the response. This lets clients access the provider token directly without an extra request. <sup>Written for commit fa74054b2c565c6ba45b8e7fd8151b3b8716e379. 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:02:43 -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#6543