forcedotcom/SalesforceMobileSDK-iOS — pull request #45 by tstellanova-sfdc (2012-03-29 19:17:01+00:00)
Title: Fix instance switching

Clear rkClient when setting oauth coordinator.

This allows consumers of SFOAuthCoordinator to signal that the credentials may have changed. RKClient requires baseURL which corresponds to the instance URL. We were seeing an issue when the user logged out of one org on one instance and logged into another org on another instance -- rkClient's baseURL never updated, so it was pointing at the first instance URL and all requests failed ad inifinitum.