[PR #2664] [MERGED] feat: add account info endpoint #4431

Closed
opened 2026-03-13 11:46:19 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/2664
Author: @BlankParticle
Created: 5/15/2025
Status: Merged
Merged: 5/23/2025
Merged by: @Bekacru

Base: mainHead: feat/get-account-info


📝 Commits (2)

  • 5c6d55a feat: add account info endpoint
  • 5737e24 Merge branch 'main' into feat/get-account-info

📊 Changes

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

View changed files

📝 docs/content/docs/concepts/oauth.mdx (+19 -0)
📝 packages/better-auth/src/api/index.ts (+2 -0)
📝 packages/better-auth/src/api/routes/account.ts (+95 -0)

📄 Description

added a accountInfo endpoint which given an accountId, fetches the provider given info.
It can be used to fetch extra provider specific info which we dont store in database like Bio, profile customization etc whatever is returned by userInfo function on socialProvider


🔄 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/2664 **Author:** [@BlankParticle](https://github.com/BlankParticle) **Created:** 5/15/2025 **Status:** ✅ Merged **Merged:** 5/23/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `main` ← **Head:** `feat/get-account-info` --- ### 📝 Commits (2) - [`5c6d55a`](https://github.com/better-auth/better-auth/commit/5c6d55af3cd2296d681feaca25b335814ccb332b) feat: add account info endpoint - [`5737e24`](https://github.com/better-auth/better-auth/commit/5737e24629e954c0706d6bb354fbe9cb5f6317f7) Merge branch 'main' into feat/get-account-info ### 📊 Changes **3 files changed** (+116 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/oauth.mdx` (+19 -0) 📝 `packages/better-auth/src/api/index.ts` (+2 -0) 📝 `packages/better-auth/src/api/routes/account.ts` (+95 -0) </details> ### 📄 Description added a `accountInfo` endpoint which given an accountId, fetches the provider given info. It can be used to fetch extra provider specific info which we dont store in database like Bio, profile customization etc whatever is returned by `userInfo` function on socialProvider --- <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 11:46: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#4431