# Reset password using @okta/okta-auth-js

**URL:** <https://devforum.okta.com/t/reset-password-using-okta-okta-auth-js/3253>\
**Category:** Questions\
**Created:** [November 1, 2018, 12:22pm UTC](https://devforum.okta.com/t/reset-password-using-okta-okta-auth-js/3253 "2018-11-01T12:22:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ennovum](https://avatars.discourse-cdn.com/v4/letter/e/b3f665/32.png) [@ennovum](https://devforum.okta.com/u/ennovum)\
**Post date:** [November 1, 2018, 12:22pm UTC](https://devforum.okta.com/t/reset-password-using-okta-okta-auth-js/3253/1 "2018-11-01T12:22:53Z")

</div>

Hi

I want to implement forgot password + reset password flow in my UI app using `@okta/okta-auth-js`@2.0.1. I was facing issues, so I looked through the code and discovered that `transaction.resetPassword` function is actually not implemented there. But it is in the docs/readme. Is there a reason for that?

I tried sending the reset password request to the API manually, but couldn’t get it to work. My flow is basically this:

> **[okta/okta-auth-js](https://github.com/okta/okta-auth-js#forgotpasswordoptions)**
>
> The official js wrapper around Okta's auth API. Contribute to okta/okta-auth-js development by creating an account on GitHub.

  
One additional thing is when the `transaction.status === 'SUCCESS'`, I’m sending the `/api/v1/authn/credentials/reset_password` request with the `stateToken` (taken from the cookie) and `newPassword` coming from a form. But I’m getting 403 response:

```auto
{"errorCode":"E0000006","errorSummary":"You do not have permission to perform the requested action","errorLink":"E0000006","errorId":"oaec66KAL8tQFS1xx5EiidG-A","errorCauses":[]}

```

What am I missing? How can I set a new password for a user through OKTA API?

I’m running on MSWin 7, Node.JS 8.9.4, NPM 6.4.1.

---

<div class="post-metadata">

**Author:** ![gr3go](https://avatars.discourse-cdn.com/v4/letter/g/bc8723/32.png) [@gr3go](https://devforum.okta.com/u/gr3go)\
**Post date:** [February 18, 2019, 12:10pm UTC](https://devforum.okta.com/t/reset-password-using-okta-okta-auth-js/3253/2 "2019-02-18T12:10:59Z")

</div>

Being in a similar situation just wondering if the latest SDK now supports the resetPassword?

---

<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:** [January 17, 2024, 7:39pm UTC](https://devforum.okta.com/t/reset-password-using-okta-okta-auth-js/3253/3 "2024-01-17T19:39:04Z")

</div>

Closed on January 17, 2024, 7:39pm UTC


