Quick and dirty implementation of init auth