Okta AuthJS SDK: Unlock and Recover Password

Our organization currently uses the Okta AuthJS SDK for authentication using MFA (email/phone). We would like to also use the AuthJS SDK for self-service unlock and recover password. We currently don’t have separate flows for unlock and recover password in our current implementation (resetting the password will unlock the account if necessary). I have tried using the recoverPassword flow but when the account is locked the SDK will produce an error (doesn’t appear to be supported). As an alternative I have been looking into using the unlock flow and once successful transitioning to recover password. If I call authClient.idx.recoverPassword() it appears to create a new transaction and requires a factor challenge. When using the sign-in widget the flow does not require another factor challenge and allows the password to be updated. I have not been able to find any examples in the documentation regarding how to initiate a password recovery from a different flow (ex: unlock to recover password, or authenticate to recover password). Please advise if this is possible using the Okta AuthJS SDK.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.