[PR #6426] [CLOSED] fix(phoneNumber): create/update account with reset-password #32259

Closed
opened 2026-04-17 23:06:07 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/6426
Author: @solareon
Created: 11/30/2025
Status: Closed

Base: canaryHead: fix/phoneNumber-account


📝 Commits (1)

  • 9f96249 fix(phoneNumber): create/update account with reset-password

📊 Changes

1 file changed (+17 additions, -0 deletions)

View changed files

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

📄 Description

Problem:
When using the phoneNumber plugin for sign in with phoneNumber an appropriately linked 'credential' provider must exist in the account table. This is done under the email signup/reset flow but not within the phoneNumber plugin. Noticed this was missing after troubleshooting and finding #6401

Fix:
This patch adds the create/update functionality to the phoneNumber plugin.


Summary by cubic

Adds credential account linking/update to the phoneNumber plugin during password reset to match the email flow and prevent phone sign-in failures.

  • Bug Fixes
    • On reset-password, link a 'credential' account with the hashed password if missing; otherwise update the existing credential password.

Written for commit 9f9624947a. Summary will update automatically on new commits.


🔄 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/6426 **Author:** [@solareon](https://github.com/solareon) **Created:** 11/30/2025 **Status:** ❌ Closed **Base:** `canary` ← **Head:** `fix/phoneNumber-account` --- ### 📝 Commits (1) - [`9f96249`](https://github.com/better-auth/better-auth/commit/9f9624947ace4a85f1234ec66142964c410ec7b7) fix(phoneNumber): create/update account with reset-password ### 📊 Changes **1 file changed** (+17 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/better-auth/src/plugins/phone-number/index.ts` (+17 -0) </details> ### 📄 Description **Problem:** When using the phoneNumber plugin for sign in with phoneNumber an appropriately linked 'credential' provider must exist in the account table. This is done under the email signup/reset flow but not within the phoneNumber plugin. Noticed this was missing after troubleshooting and finding #6401 **Fix:** This patch adds the create/update functionality to the phoneNumber plugin. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds credential account linking/update to the phoneNumber plugin during password reset to match the email flow and prevent phone sign-in failures. - **Bug Fixes** - On reset-password, link a 'credential' account with the hashed password if missing; otherwise update the existing credential password. <sup>Written for commit 9f9624947ace4a85f1234ec66142964c410ec7b7. Summary will update automatically on new commits.</sup> <!-- 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 23:06:07 -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#32259