Expire Password & Get Temporary Password

I am using the expirePasswordAndGetTemporaryPassword function sending the following in the body:
{ "id": "someID", "tempPassword": true }
I get a response back with the status of ‘PASSWORD_EXPIRED’ but I do not get a tempPassword returned. _links_ are included in the response and I try to use the expire_password attribute and added tempPassword=true as a param but I get a 401. I am stuck on how to proceed here

Hi @mckNana,

Which SDK are you using?
I verified that there is indeed a bug in the nodejs SDK which we will fix soon.


I am using the SDK currently

1 Like

Is the bug with the lifecycle/expire_password route as well? @vijet

No @mckNana. That route should work fine. It should expire the password for the user.
The issue was with the tempPassword query param being sent by the SDK to the Okta endpoint. There was an issue with encoding which caused this.
We have fixed the issue here - https://github.com/okta/okta-sdk-nodejs/pull/180
We will release a patch version for the nodejs SDK soon and you should be able to upgrade and fix it.

Thanks for catching and notifying us about the bug.

Could I just make the changes in the node modules for now? @vijet

Yes, you should be able to do that.

When should I expect the sdk to be updated? @vijet

@mckNana - Sorry for the late reply but version 4.1.0 is now released and should contain the fix.