Hello, I am implementing supertokens in my project...
# support-questions-legacy
d
Hello, I am implementing supertokens in my project in a self-hosted way, everything is fine, but I don't quite understand how the issue of resetting the password of registered users with email and password works
r
hey @Nihil i don't understand the question. COuld you rephrase?
n
Well I am implementing supertokens with my custom UI. What happens is that the password reset link is sent perfectly, the problem comes when it redirects me to my page, I don't know how I can verify the password reset token in order to allow the user to enter their new password. I hope I explained myself well, my english is not the best.
Im using react JS in frontend and NodeJS in my backend
r
we have docs for this https://supertokens.com/docs/emailpassword/custom-ui/forgot-password#step-2-updating-the-users-password You have to call the
submitNewPassword
function on the page where the link opens
n
then the token, its expiration and the user are automatically verified?
r
yes. On the backend
n
you were right, yes it worked spectacularly
r
great
8 Views