finish authentication and minify assets