update auth func
merge