phone number + password login mechanism #224

Closed
opened 2026-03-13 07:38:37 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @ywyher on GitHub (Nov 14, 2024).

since the phone number plugin login the user by default on verification i don't see a reason why the mechanism isn't there yet
and if not planned for the soon future i think removing "allowing users to sign in" from the docs would be better, since i spent a good amount of time implementing the phone number functionality thinking that i will be able to sign users in using it just to get surprised that i can't lol

Originally created by @ywyher on GitHub (Nov 14, 2024). since the phone number plugin login the user by default on verification i don't see a reason why the mechanism isn't there yet and if not planned for the soon future i think removing "allowing users to sign in" from the docs would be better, since i spent a good amount of time implementing the phone number functionality thinking that i will be able to sign users in using it just to get surprised that i can't lol
Author
Owner

@Bekacru commented on GitHub (Nov 14, 2024):

well that shouldn't be the case. you can try it on 0.8.4-beta.1. Will be merged soon!

await authClient.signIn.phoneNumber({
    phoneNumber: "+123456789",
    password: "password",
    remeberMe: true //optional defaults to true
})
@Bekacru commented on GitHub (Nov 14, 2024): well that shouldn't be the case. you can try it on `0.8.4-beta.1`. Will be merged soon! ```ts await authClient.signIn.phoneNumber({ phoneNumber: "+123456789", password: "password", remeberMe: true //optional defaults to true }) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#224