secure auth for build