Define authKeys global in all relevant functions.