Reset password and OTP

Hello, I was wondering if there is a build in functionality in keycloak for reset password (forgot password) to get an OTP returned (java admin client) and later on use that OTP as a means to actually resetting the password.
Thank you.