How do I save the credentials in SFOAuthCoordinator? The app is crashing if in
-[SFOAuthCoordinator authenticate]
method with message saying
'credentials.clientId cannot be nil or empty'
I am setting the credentials and saving it like this in the delegate method
- (void) oauthCoordinatorDidAuthenticate: (SFOAuthCoordinator *) coordinator authInfo:(SFOAuthInfo *)info
{
// [SFAccountManager sharedInstance].coordinator = coordinator;
// [SFAccountManager sharedInstance].credentials = coordinator.credentials;
[SFAuthenticationManager sharedManager].coordinator = coordinator;
[[SFAuthenticationManager sharedManager] coordinator].credentials = coordinator.credentials;
[[SFUserAccountManager sharedInstance] applyCredentials:self.coordinator.credentials];
[[SFUserAccountManager sharedInstance] saveAccounts:nil];
}
What am I missing here? Thanks! Note: I am updating the salesforcemobilesdk-ios to the latest version.