You will now have to rebuild the client each time you call setCredentials.