In modern usage, 死党 almost always means 'best friend' or 'BFF' among young people. The older meaning of 'diehard followers of a political faction' is rarely used today.
memory
死 (die) + 党 (party/group) = someone who would 'die' for your group. Think of it as a ride-or-die friend.