updatePassword

fun ProfileScreenViewModel.updatePassword(newPassword: String, resetStateTimeOut: Long = defaultResetStateTimeOut)

A utility method that is used to update the password of the currently logged-in user with the newPassword. This extension method is a shorthand for the ProfileScreenViewModel.updateAttributeForCurrentUser. It removes the need for specifying the 'updateAttribute' param of the ProfileScreenViewModel.updateAttributeForCurrentUser method.