Add the chopped onions, garlic, salt, vinegar, and water.
You can also add any of the optional add-ins at this point.
Put the lid on and set Instant Pot to high pressure for 1 hour and 20 minutes.
When beans have finished pressuring in the instant pot, you can either let it naturally release, or if you are in a hurry, you can do a quick release. Always be careful when doing a quick release. I suggest putting a hand towel over the release valve to help keep the steam and spray from getting on your cupboards or anything else.
Once pressure has been released, remove the lid and carefully drain about ⅔ of the liquid out of the beans. I reserve about a cup of that water in case I need to add a little more back into the beans.
Next, add the oil to the partially drained beans and using an immersion blender carefully blend the refried beans, the remaining bean water, and the oil until they reach the consistency you prefer for your refried beans.
Serve immediately or let cool and store in the fridge for up to 5 days or in the freezer for up to six months.
Recipe by Real Life Dinner at https://reallifedinner.com/instant-pot-refried-beans/