Custom password validation

Is there a way to have custom password validation (except those Okta provides) to call and check if password is valid from frontend?
Basically, I am trying to have some front-end validation and was wondering if OKTA provides any tool to validate and display error message in front end.


If using the Okta Signin Widget this validation is taken care based off of the password policy requirements the user falls under.

The Widget does provide a hook when doing registration where the password can be inspected first.