Hey guys. I had a question about the sendPasswordResetEmail method that we use to send a reset password link to the user. Can someone explain the different options available for how the email is sent? I checked the docs here https://supertokens.com/docs/web-js/modules/recipe_emailpassword.html#RecipeFunctionOptions but it isn't clear to me what the RecipeFunctionOptions object passed to recipe functions represents. Maybe an example of the options object and what it means can be helpful.
r
rp_st
08/01/2022, 6:07 PM
Hey! In the minimal case, you only need to pass this the email ID to send the reset password email to.
rp_st
08/01/2022, 6:08 PM
Hey. In the minimal case, you only need to pass it the email Id
rp_st
08/01/2022, 6:08 PM
The options is just a way for you to be able to modify the actual request object that’s being sent
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).