Change getauthinfo to main.js