Hi guys, I want to implement password reset on angularJS, is there a way or do I have to do it on th...
k
Hi guys, I want to implement password reset on angularJS, is there a way or do I have to do it on the backend side?
n
Hi @kalibcheil0320, Our backend SDK adds the password reset api route for you. On angular you will need to use the supertokens-website SDK and then call the API yourself. You can refer to the api spec here: https://supertokens.com/docs/fdi
k
Thanks for the info, but I have other question
Where can I find the token that I have to send in the body?
when I use the
/user/password/reset
end point
n
So the flow is: 1. Call the
/user/password/reset/token
API. This will generate a token and send a link to the user's email 2. When the user clicks the link it will open a page where the token will be in the query parameters of the URL
k
when I use
/user/password/reset/token
endpoint it doesn't send me an email
where can I configure that?
s
If user email exists in the supertokens user database, you might want to check the spam folder. In my case Gmail sends reset password emails from supertokens directly to spam.
It is no big deal though since you would be using a third party service in the production like mailgun anyway.