update auth code