https://supertokens.com/ logo
e

EdwinN1337

06/15/2022, 8:01 AM
Hello, is there a way to provide some extra information from where the password reset has been requested?
Copy code
js
        resetPasswordUsingTokenFeature: {
          createAndSendCustomEmail: async (user, url) => {

        //based on the platform (app or web) it's a different URL
https://app.swaggerhub.com/apis/supertokens/FDI/1.13.2#/ThirdPartyEmailPassword%20Recipe/thirdPartyEmailPasswordPasswordResetToken
r

rp

06/15/2022, 8:01 AM
hey @EdwinN1337 yes there is
You should override the password reset post API, and in there, you can get access to the request object. You can save the request object in the user_context and that same userContext object will be available in the
createAndSendCustomEmail
function
e

EdwinN1337

06/15/2022, 8:03 AM
Ahh, missed it thanks!