updating updateAuth example