Direct update password into Firebase Authentication

Hi, I have been searching in this Community but most of them will send the reset link to user’s email, or amend the password to Realtime Database. (If there’s post I have been missed out for my similar enquiry, kindly point out to me, appreciate your help)
So, is there any possibilities that we are able to update/change the password directly into Firebase Authentication using web component? (For frontend UI, users only key in their new password into textbox and save it)
I roughly know may be using the idToken but I’m not sure how to do it.
Below are the current blocks i’m implementing when user wants to reset password, by sending reset link in email.
Thank you.