Two common options for joining electrical wires are Wago connectors and traditional wire nuts. Both are up to code but work differently and shine in different situations.
Avoid applying paints, lubricants, or patching compounds to electrical connections unless explicitly approved by the manufacturer. Unapproved coatings can create unintended conductive paths, insulate ...