Move auth initialization to own method