update auth context