# ForgotPassword method in Okta-Auth-JS

**URL:** <https://devforum.okta.com/t/forgotpassword-method-in-okta-auth-js/14938>\
**Category:** Questions\
**Created:** [June 29, 2021, 11:42am UTC](https://devforum.okta.com/t/forgotpassword-method-in-okta-auth-js/14938 "2021-06-29T11:42:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobias](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tobias](https://devforum.okta.com/u/tobias)\
**Post date:** [June 29, 2021, 11:42am UTC](https://devforum.okta.com/t/forgotpassword-method-in-okta-auth-js/14938/1 "2021-06-29T11:42:19Z")

</div>

I am getting as a response a sessionToken by passing the current recoveryToken provided by the email.  
However, in order to use the resetPassword function, I need that the payload for the transaction object is returned as follows:  
[https://developer.okta.com/docs/reference/api/authn/#response-example-for-activation-token-success-user-without-password](https://developer.okta.com/docs/reference/api/authn/#response-example-for-activation-token-success-user-without-password)  
Is there something from the okta MFA that we need to do in order for this to work?

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [June 30, 2021, 2:51am UTC](https://devforum.okta.com/t/forgotpassword-method-in-okta-auth-js/14938/2 "2021-06-30T02:51:16Z")

</div>

@tobias Hi, both email and SMS factors generate a token  
Please refer the this [discussion](https://devforum.okta.com/t/reset-password-custom-implementation/11212/3)

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 10, 2024, 12:36am UTC](https://devforum.okta.com/t/forgotpassword-method-in-okta-auth-js/14938/3 "2024-02-10T00:36:23Z")

</div>

Closed on February 10, 2024, 12:36am UTC


