When you register a user asynchronously, you need to implement asynchronous delegates.
//As a prerequisite, ensure that the class which implements the asynchronous call inherits the ODPUserManagerDelegate in its corresponding .h file
//Example: @interface SUPProxyClientViewController : UIViewController<ODPUserManagerDelegate>
[userManager setDelegate:self];
[userManager registerUser:@"<username>" securityConfig:@"SSO" password:@"<password>" error:nil isSyncFlag:YES];
//Asynchronous Error Delegate Handling
-(void)userRegistrationFailed:(NSError*)error
{
//Implement user logic here
}
//Asynchronous Success Delegate Handling
-(void)userRegistrationSuccessful
{
//Implement user logic here
}