How to update password in Custom Provider

Hi,

I have created Keycloak custom provider. I am reading my user from db.

I want to check if user account is expired, then update password page should appear to user and new password should be saved in db. How could I do that ?

I have seen keycloak documentation but didn’t find any clue on this