added CONFIG const to authFactory