Make auth conditional in main.bit