[GH-ISSUE #431] Expose a hasPassword method on the client #8271

Closed
opened 2026-04-13 03:21:16 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @svaraborut on GitHub (Nov 5, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/431

Is your feature request related to a problem? Please describe.
Users do not know how to check if the user has a password set. Is my understanding that being the system multi-account the correct API should be authClient.listAccounts() but is confusing for simple use cases.

Describe the solution you'd like
Provide a hasPassword() function on the client.

Originally created by @svaraborut on GitHub (Nov 5, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/431 **Is your feature request related to a problem? Please describe.** Users do not know how to check if the user has a password set. Is my understanding that being the system multi-account the correct API should be `authClient.listAccounts()` but is confusing for simple use cases. **Describe the solution you'd like** Provide a `hasPassword()` function on the client.
GiteaMirror added the locked label 2026-04-13 03:21:16 -05:00
Author
Owner

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

You can list the user accounts and find a provider with provider id credential that should be enough imo

<!-- gh-comment-id:2464220881 --> @Bekacru commented on GitHub (Nov 8, 2024): You can list the user accounts and find a provider with provider id `credential` that should be enough imo
Author
Owner

@svaraborut commented on GitHub (Nov 9, 2024):

I see users getting confused about it on Discord. Maybe a method provides a simple solution for newcommers imho.

<!-- gh-comment-id:2466316470 --> @svaraborut commented on GitHub (Nov 9, 2024): I see users getting confused about it on Discord. Maybe a method provides a simple solution for newcommers imho.
Author
Owner

@Bekacru commented on GitHub (Dec 17, 2024):

I'm not seeing much confusion since we added listAccounts. If it keeps coming up, we'll add an FAQ section for it, but for now, I'm going to close this

<!-- gh-comment-id:2547915362 --> @Bekacru commented on GitHub (Dec 17, 2024): I'm not seeing much confusion since we added `listAccounts`. If it keeps coming up, we'll add an FAQ section for it, but for now, I'm going to close this
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8271