You are here

refreshAccessToken

- (void)refreshAccessToken:(AlfrescoOAuthData *)oauthData completionBlock:(AlfrescoOAuthCompletionBlock)completionBlock; - Refreshes the access token represented by the given OAuthData object. A new OAuthData object containing the new access token is returned. If the access token cannot be refreshed an exception is thrown.

Parameters

(AlfrescoOAuthData *)oauthData
OAuth data.
(AlfrescoOAuthCompletionBlock)completionBlock
The completion block called on completion of the operation. The completion block has the format typedef void (^AlfrescoOAuthCompletionBlock)(AlfrescoOAuthData * oauthData, NSError *error);.

Returns

(void)

Example