setAuth is not updating the auth state