SFOAuthSessionRefresher Class Reference
Inherits from | NSObject |
---|---|
Declared in | SFOAuthSessionRefresher.h |
Other Methods
– initWithCredentials:
Initializes the object with the given credentials.
- (instancetype)initWithCredentials:(nullable SFOAuthCredentials *)credentials
Parameters
credentials |
The OAuth credentials used to refresh the session. |
---|
Declared In
SFOAuthSessionRefresher.h
– refreshSessionWithCompletion:error:
Refreshes the expired session, with the given completion and error handler blocks.
- (void)refreshSessionWithCompletion:(void ( ^ ) ( SFOAuthCredentials *))completionBlock error:(void ( ^ ) ( NSError *))errorBlock
Parameters
completionBlock |
Called once the session has been refreshed. |
---|---|
errorBlock |
Called if there was an error refreshing the session. |
Declared In
SFOAuthSessionRefresher.h