XIAO ESP32C3 Battery ussage

I did just that, and i think the battery did charge, but if u pull out the usb the device goes off.

If i measure at the battery pads on the board i measure 4v so the connection seems to be ok.