[GH-ISSUE #2811] Add extra params options to phoneNumber.sendOTP #26681

Closed
opened 2026-04-17 17:20:12 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @yungkittty on GitHub (May 28, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/2811

Is this suited for github?

  • Yes, this is suited for github

I'd like to add a hash to the SMS body to enable auto-fill on Android, which is determined on the front end using Google's SMS Retriever API.
Also, if it's used as a sign-up method, I'd like to include the device language to translate the SMS accordingly.

Describe the solution you'd like

phoneNumber.sendOtp({
  phoneNumber: "...",
  [variableName]: variableValue
});

Describe alternatives you've considered

For now, I'm computing the hash on the back end. As for the translation, I don't see a workaround.

Additional context

No response

Originally created by @yungkittty on GitHub (May 28, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/2811 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. I'd like to add a hash to the SMS body to enable auto-fill on Android, which is determined on the front end using Google's SMS Retriever API. Also, if it's used as a sign-up method, I'd like to include the device language to translate the SMS accordingly. ### Describe the solution you'd like ```js phoneNumber.sendOtp({ phoneNumber: "...", [variableName]: variableValue }); ``` ### Describe alternatives you've considered For now, I'm computing the hash on the back end. As for the translation, I don't see a workaround. ### Additional context _No response_
GiteaMirror added the locked label 2026-04-17 17:20:12 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 27, 2025):

Hi, @yungkittty. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested enhancing the phoneNumber.sendOTP method to include parameters for an Android SMS auto-fill hash and device language.
  • The goal is to support SMS translation and improve usability for Android users with multilingual support.
  • Currently, you compute the hash on the backend and have no solution for translation.
  • There has been no further activity or comments on this issue.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of better-auth by commenting below.
  • If I do not hear back within 7 days, this issue will be automatically closed.

Thank you for your understanding and contribution!

<!-- gh-comment-id:3228812633 --> @dosubot[bot] commented on GitHub (Aug 27, 2025): Hi, @yungkittty. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. Issue Summary: - You requested enhancing the `phoneNumber.sendOTP` method to include parameters for an Android SMS auto-fill hash and device language. - The goal is to support SMS translation and improve usability for Android users with multilingual support. - Currently, you compute the hash on the backend and have no solution for translation. - There has been no further activity or comments on this issue. Next Steps: - Please let me know if this issue is still relevant to the latest version of better-auth by commenting below. - If I do not hear back within 7 days, this issue will be automatically closed. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#26681