Compact 2-pin magnetic connector used for safe and efficient power supply connection