update auth sample