currentPasswordValid argument doesn't work for Password Reset Function

To begin I am referencing the documentation found here:

When resetting a password the documentation says in regard to the currentPasswordValid argument:

“A boolean that is true if a user requests to change their password to their existing password.”

However, in my experience, currentPasswordValid is always false even if the password is the same.

I am using the web sdk.

Am I missing something here?