Save AuthState when it changes