SKTAuthenticationDelegate Protocol Reference
Delegate protocol for events related to authentication.
Creating a delegate is optional, and may be used to receive callbacks for important authentication events.
Notifies the delegate that the current jwt used to authenticate requests is invalid.
- (void)onInvalidToken:(NSError *)error handler:(SKTAuthenticationCompletionBlock)completionHandler
Error object for the request
Block to call with the updated jwt
Called when a request fails due to an invalid jwt. Use
completionHandler to update the token and automatically retry the failed request. If the updated jwt is also invalid, this method is called again, with a maximum of 5 retry attempts per request.