SBDAuthenticateDelegate Protocol Reference

Conforms to NSObject
Declared in SBDConnectionManager.h

– shouldHandleAuthInfoWithCompletionHandler: required method

A delegate method for the user authentication. Implements this method to get the user ID, the access token, the API host, and the WS host from the customer’s side. The completionHandler() has to be invoked when the user authentication is completed. The completionHandler() will invoke didFinishAuthenticationWithUser:error: to return the user object and the error.

- (void)shouldHandleAuthInfoWithCompletionHandler:(void ( ^ _Nonnull ) ( NSString *_Nullable userId , NSString *_Nullable accessToken , NSString *_Nullable apiHost , NSString *_Nullable wsHost ))completionHandler

Parameters

completionHandler

The completion handler to notify Sendbird SDK of the completion of the user authentication.

Declared In

SBDConnectionManager.h

– didFinishAuthenticationWithUser:error: required method

A delegate method for the completion of the user authentication. This delegate is invoked by the completionHandler of ‘shouldHandleAuthInfoWithCompletionHandler:`.

- (void)didFinishAuthenticationWithUser:(SBDUser *_Nullable)user error:(SBDError *_Nullable)error

Parameters

user

The current user object.

error

The error object. If an error has occurred while connecting to Sendbird, the error isn’t nil.

Declared In

SBDConnectionManager.h