[GH-ISSUE #6657] api function to verify password #27910

Closed
opened 2026-04-17 19:11:46 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @SaviruFr on GitHub (Dec 10, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/6657

Is this suited for github?

  • Yes, this is suited for github

There's an existing issue (#803) that was closed as not planned, but I'd like to bring this up again because it's still a real need. Right now, there's no easy way to verify a user's password.

Describe the solution you'd like

const verify = await auth.api.verifyPassword({
  password,
});

Describe alternatives you've considered

Manually fetching the password hash from the db and verifying it

Additional context

No response

Originally created by @SaviruFr on GitHub (Dec 10, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/6657 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. There's an existing issue (#803) that was closed as not planned, but I'd like to bring this up again because it's still a real need. Right now, there's no easy way to verify a user's password. ### Describe the solution you'd like ```ts const verify = await auth.api.verifyPassword({ password, }); ``` ### Describe alternatives you've considered Manually fetching the password hash from the db and verifying it ### Additional context _No response_
GiteaMirror added the lockedenhancement labels 2026-04-17 19:11:46 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Dec 10, 2025):

Hi there, thanks for opening this issue on Better Auth. We acknowledge your request regarding an API function to verify a user's password. Currently, there isn’t a built-in function for password verification via the API, which is why many users end up manually fetching the password hash from the database and verifying it themselves [1].

One potential avenue could be to consider an enhancement where a dedicated function like auth.api.verifyPassword is provided. I'd recommend tagging @bekacru and @ping__ so that they can weigh in on whether this functionality might be added in a future release.

Tag @better-auth-agent if you would like an answer from the Agent.

What practices have you found effective when handling password verification in your current setup?

If you need more help, tag @better-auth-agent in a comment so I can respond.

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3636152046 --> @better-auth-agent[bot] commented on GitHub (Dec 10, 2025): Hi there, thanks for opening this issue on Better Auth. We acknowledge your request regarding an API function to verify a user's password. Currently, there isn’t a built-in function for password verification via the API, which is why many users end up manually fetching the password hash from the database and verifying it themselves [[1]](https://github.com/better-auth/better-auth/issues/1183). One potential avenue could be to consider an enhancement where a dedicated function like auth.api.verifyPassword is provided. I'd recommend tagging @bekacru and @ping__ so that they can weigh in on whether this functionality might be added in a future release. Tag @better-auth-agent if you would like an answer from the Agent. What practices have you found effective when handling password verification in your current setup? _If you need more help, tag @better-auth-agent in a comment so I can respond._ <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) • [Discord](https://discord.gg/fG2XXEuQX3) • [GitHub](https://github.com/Skyvern-AI/Skyvern) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/skyvern_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/fG2XXEuQX3) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/Skyvern-AI/Skyvern)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#27910