[PR #3925] [MERGED] fix: handle inconsistent user update error in phone number plugin #21990

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

📋 Pull Request Information

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

Base: canaryHead: fix/phone-number-user-returning-null-inconsistencies


📝 Commits (1)

  • f1accda fix: handle user update error in phone number plugin

📊 Changes

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

View changed files

📝 packages/better-auth/src/plugins/phone-number/index.ts (+3 -8)

📄 Description

Summary by cubic

Fixed inconsistent error handling when user updates fail in the phone number plugin by always throwing an API error instead of returning null.


🔄 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/3925 **Author:** [@Kinfe123](https://github.com/Kinfe123) **Created:** 8/11/2025 **Status:** ✅ Merged **Merged:** 8/11/2025 **Merged by:** [@Kinfe123](https://github.com/Kinfe123) **Base:** `canary` ← **Head:** `fix/phone-number-user-returning-null-inconsistencies` --- ### 📝 Commits (1) - [`f1accda`](https://github.com/better-auth/better-auth/commit/f1accda0bf5d9b6616c0ddb002e4ce7e7e1ffa80) fix: handle user update error in phone number plugin ### 📊 Changes **1 file changed** (+3 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/phone-number/index.ts` (+3 -8) </details> ### 📄 Description <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Fixed inconsistent error handling when user updates fail in the phone number plugin by always throwing an API error instead of returning null. <!-- 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 20:44: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#21990