[PR #4928] [CLOSED] feat: return full user on signIn #22566

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4928
Author: @Konixy
Created: 9/26/2025
Status: Closed

Base: canaryHead: feat/return_full_user_on_signin


📝 Commits (4)

  • dcafd82 feat: return full user on signIn
  • a74af06 adding tests that checks if the signIn endpoint returns the full user
  • 4c308f3 Merge branch 'canary' into feat/return_full_user_on_signin
  • fa7edec Merge branch 'canary' into feat/return_full_user_on_signin

📊 Changes

3 files changed (+35 additions, -85 deletions)

View changed files

📝 packages/better-auth/src/api/index.ts (+2 -2)
📝 packages/better-auth/src/api/routes/sign-in.test.ts (+25 -0)
📝 packages/better-auth/src/api/routes/sign-in.ts (+8 -83)

📄 Description

I wasn't able to get the types to work, and I don't know the project well enough to debug it.


Summary by cubic

Return the full user object in sign-in responses (email and social) so clients receive all fields, including custom ones. Updated typing and OpenAPI schema to use the shared User model.

  • New Features
    • signInSocial and signInEmail now generic and return InferUser.
    • Response schema now references components/schemas/User.
    • getEndpoints updated to instantiate signInSocial() and signInEmail().

🔄 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/4928 **Author:** [@Konixy](https://github.com/Konixy) **Created:** 9/26/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `feat/return_full_user_on_signin` --- ### 📝 Commits (4) - [`dcafd82`](https://github.com/better-auth/better-auth/commit/dcafd8237ac5cf6e0c2e58395f79289d5f19adb2) feat: return full user on signIn - [`a74af06`](https://github.com/better-auth/better-auth/commit/a74af06f5df0aa28357b12e4c904065119fa99ed) adding tests that checks if the signIn endpoint returns the full user - [`4c308f3`](https://github.com/better-auth/better-auth/commit/4c308f3aa23efdc7df14366828ab08bbff57be91) Merge branch 'canary' into feat/return_full_user_on_signin - [`fa7edec`](https://github.com/better-auth/better-auth/commit/fa7edec171f00a12c787c7d9f63248e02b790233) Merge branch 'canary' into feat/return_full_user_on_signin ### 📊 Changes **3 files changed** (+35 additions, -85 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/api/index.ts` (+2 -2) 📝 `packages/better-auth/src/api/routes/sign-in.test.ts` (+25 -0) 📝 `packages/better-auth/src/api/routes/sign-in.ts` (+8 -83) </details> ### 📄 Description I wasn't able to get the types to work, and I don't know the project well enough to debug it. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Return the full user object in sign-in responses (email and social) so clients receive all fields, including custom ones. Updated typing and OpenAPI schema to use the shared User model. - **New Features** - signInSocial and signInEmail now generic and return InferUser<Option>. - Response schema now references components/schemas/User. - getEndpoints updated to instantiate signInSocial<Option>() and signInEmail<Option>(). <!-- 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:17 -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#22566