Convex auth setting user password.
I'm workin on an app where I want users to be able to change their password. How do I hash and verify the password from user input? I'm using the Password provider and there doesn't seem to be a simple function to do it. I tried
Password().crypto?.hashSecret()
from
"@convex-dev/auth/providers/Password";
3 Replies
Thanks for posting in <#1088161997662724167>.
Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets.
- Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.)
- Use search.convex.dev to search Docs, Stack, and Discord all at once.
- Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI.
- Avoid tagging staff unless specifically instructed.
Thank you!
https://labs.convex.dev/auth/config/passwords#email-reset-setup
^ maybe this can help?
Also you can use it without resend if you use a function that accepts token, identifier, email, but i think you should stick to the flow of request reset-> reset
Passwords - Convex Auth
Authentication library for your Convex backend
Never mind I'm wrong, just pass reset-verification for the flow
In the form data like in the example