
User17115440777069639726 (Customer) asked a question.
Since couple weeks ago, I noticed unlock account feature stopped working in our okta preview tenants. Production has no issue. No changes has been made for a long time. I am suspecting its something new that OKTA introduced in the preview tenants only. Can you please help? Nothing has changed on our side. Same config and code run in preview and production tenants. only preview tenants have this issue.
this is the error we are getting
No remediation can match current flow, check policy settings in your org.
Remediations: [unlock-account]
This is the code that we used to handle it.
try {
await oktaAuth.idx.unlockAccount({
username: email,
authenticators: [AuthenticatorKey.OKTA_EMAIL],
});
await oktaAuth.idx.proceed({
methodType: 'email',
});
setTimeout(cancelOktaIdx, 300000);
setIsLoading(false);
setUnlockRequestSuccess(true);
} catch (error) {
console.error(error);
setAPIErrorMessage(t('APIErrorMessage'));
setIsLoading(false);
}

See if the following helps.
https://support.okta.com/help/s/article/Error-in-the-Password-Widget-flow-for-the-selfhosted-Okta-Signin-widget-enabled-with-Interaction-Code-flow?language=en_US