If you interview well and have competing offers from large firms that shell out good cash, you can get that as a senior dev. Networking helps a lot, if you have the right friends working there, they'll make sure you interview with the right people.
1-2M is way above market for a "senior dev." Even for the top companies, that tier is reserved for truly outstanding performers who have launched major projects/innovations.
Yeah he said 500k. I Initially thought the same as you, 1-2mil.
500k for a senior dev is actually not too far out there. I have an L3 friend at Google (l3 is new hire level) who has been at the company for almost 2 years and who's total comp is almost 300k. So some L5s and L6s could certainly be pulling in 500k.