[PR #4156] [MERGED] fix(apple): ensures name is always present in profile for mapProfileT… #30827

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

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/4156
Author: @ShobhitPatra
Created: 8/22/2025
Status: Merged
Merged: 8/22/2025
Merged by: @Kinfe123

Base: canaryHead: fix/apple-name-profile


📝 Commits (1)

  • 41ae66f fix(apple): ensures name is always present in profile for mapProfileToUser

📊 Changes

1 file changed (+7 additions, -3 deletions)

View changed files

📝 packages/better-auth/src/social-providers/apple.ts (+7 -3)

📄 Description

closes https://github.com/better-auth/better-auth/issues/4153


Summary by cubic

Ensures the Apple provider always includes a name in the profile passed to mapProfileToUser and in the returned data, preventing undefined names in downstream mappings.

  • Bug Fixes
    • Build enrichedProfile with name and pass it to mapProfileToUser.
    • Use enrichedProfile for user.name and for the data payload.

🔄 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/4156 **Author:** [@ShobhitPatra](https://github.com/ShobhitPatra) **Created:** 8/22/2025 **Status:** ✅ Merged **Merged:** 8/22/2025 **Merged by:** [@Kinfe123](https://github.com/Kinfe123) **Base:** `canary` ← **Head:** `fix/apple-name-profile` --- ### 📝 Commits (1) - [`41ae66f`](https://github.com/better-auth/better-auth/commit/41ae66f06f3ae68ce8d45980265e88606eef49eb) fix(apple): ensures name is always present in profile for mapProfileToUser ### 📊 Changes **1 file changed** (+7 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/social-providers/apple.ts` (+7 -3) </details> ### 📄 Description closes https://github.com/better-auth/better-auth/issues/4153 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Ensures the Apple provider always includes a name in the profile passed to mapProfileToUser and in the returned data, preventing undefined names in downstream mappings. - **Bug Fixes** - Build enrichedProfile with name and pass it to mapProfileToUser. - Use enrichedProfile for user.name and for the data payload. <!-- 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-17 21:50:38 -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#30827