most common way I have seen is edu email address as the first pass, and a photo of a current student ID (this requires a human to check).
Github lets me use my alumni account for the discount (I dont), their idea is if you want to abuse your alumni account you get 2 years free, and they just swallow that cost