How to verify password?
Is there a function that I can use to verify the password? I want the user to type the current password to confirm before changing the username.
3 Replies
Use your auth config context
const context = await auth.$context;
Solution
context.password.verify is the method you can use