Hi All,
I am using Okta password import inline hook for first time user login via Okta Default Sign-In widget. Were I am trying to display error message after the Hook response as below.
if ($isVerified) {
$response = [
"commands" => [
[
"type" => "com.okta.action.update",
"value" => [
"credential" => "VERIFIED"
]
]
]
];
} else {
$response = [
"error" => [
"errorSummary" => "Wrong credential! Please try again sometime"
]
];
}
This is mu Okta default sign-in code:
oktaSignIn.renderEl({ el: '*okta-login-container' },
OktaUtil.completeLogin,
function(error) {
if (error && error.errorSummary) {
oktaSignIn.showError(error.errorSummary);
}
}
);
But the errorSummary not displayed as mentioned on login page? Is possible to set as expected?