[PR #4935] [MERGED] feat: additional fields on account #22572

Closed
opened 2026-04-15 21:08:34 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4935
Author: @dvanmali
Created: 9/27/2025
Status: Merged
Merged: 9/30/2025
Merged by: @himself65

Base: canaryHead: additionalFields


📝 Commits (3)

  • 09f953c fix: additional fields on account
  • 164341e fix: rename FieldAttribute to DBFieldAttribute
  • 9684b4d revert: @himself65 addition

📊 Changes

2 files changed (+8 additions, -1 deletions)

View changed files

📝 packages/better-auth/src/db/get-tables.ts (+1 -0)
📝 packages/better-auth/src/types/options.ts (+7 -1)

📄 Description

Closes: #4903


Summary by cubic

Added support for account.additionalFields in BetterAuthOptions to let apps store custom Account attributes. Updated the Next.js example docs with an SSO login flow using DummyIDP.


🔄 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/4935 **Author:** [@dvanmali](https://github.com/dvanmali) **Created:** 9/27/2025 **Status:** ✅ Merged **Merged:** 9/30/2025 **Merged by:** [@himself65](https://github.com/himself65) **Base:** `canary` ← **Head:** `additionalFields` --- ### 📝 Commits (3) - [`09f953c`](https://github.com/better-auth/better-auth/commit/09f953c1b98e73c683466a620f124227ce515a59) fix: additional fields on account - [`164341e`](https://github.com/better-auth/better-auth/commit/164341e0591f65dcc5de52332c035aa39c83380c) fix: rename FieldAttribute to DBFieldAttribute - [`9684b4d`](https://github.com/better-auth/better-auth/commit/9684b4df19740edabedd8cff7faad79f318f64d1) revert: @himself65 addition ### 📊 Changes **2 files changed** (+8 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/db/get-tables.ts` (+1 -0) 📝 `packages/better-auth/src/types/options.ts` (+7 -1) </details> ### 📄 Description Closes: #4903 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Added support for account.additionalFields in BetterAuthOptions to let apps store custom Account attributes. Updated the Next.js example docs with an SSO login flow using DummyIDP. <!-- 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-04-15 21:08:34 -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#22572