ZohoAuthAccessTokenHandler
The callback handler gives an access token or an error. The error occurs if an attempt to refresh the access token is unsuccessful.
Declaration
Objective-C
typedef void (^ZohoAuthAccessTokenHandler)(NSString *, NSError *)Swift
typealias ZohoAuthAccessTokenHandler = (UnsafeMutablePointerParameters
tokenThis token should be sent in the Authorization Header.(Header Value should be @
Zoho-oauthtoken
forHTTPHeaderField:@TOKEN Authorization
where TOKEN is the NSString accessToken obtained in this block)errorRespective error object if the attempt to refresh the access token is unsuccessful.
ZohoAuthSignInHandler
The callblack handler at Sign-in that gives the access token if there is no error. Using this handler, you can redirect to your app’s signed-in state and present your respective screens if the error is nil.
Declaration
Objective-C
typedef void (^ZohoAuthSignInHandler)(NSString *, NSError *)Swift
typealias ZohoAuthSignInHandler = (UnsafeMutablePointerParameters
tokenOAuth access token of the signed-in user.
errorRespective error object.
ZohoAuthRevokeAccessTokenHandler
The callback handler for revoking the access token at logout. Nil error means that the access token was revoked successfully. You can handle your apps logout logic in this handler if there is no error.
Declaration
Objective-C
typedef void (^ZohoAuthRevokeAccessTokenHandler)(NSError *)Swift
typealias ZohoAuthRevokeAccessTokenHandler = (UnsafeMutablePointerParameters
errorRespective error object of revoke network call.
ZohoAuthUploadHandler
The callback handler for uploading a profile picture. Nil error means that the photo has been successfully uploaded.
Declaration
Objective-C
typedef void (^ZohoAuthUploadHandler)(NSError *)Swift
typealias ZohoAuthUploadHandler = (UnsafeMutablePointerParameters
errorRespective error object of failed profile photo upload.