See my comment above on `setupCredentials`.