SFOAuthSessionRefresher Class Reference

Inherits from NSObject
Declared in SFOAuthSessionRefresher.h

Overview

This class refreshes stale OAuth sessions, if possible.

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

Extension Methods

  credentials

@property (nonatomic, strong) SFOAuthCredentials *credentials

  completionBlock

@property (nonatomic, copy) void ( ^ ) ( SFOAuthCredentials *) completionBlock

  errorBlock

@property (nonatomic, copy) void ( ^ ) ( NSError *) errorBlock