mirror of
https://github.com/ecency/ecency-mobile.git
synced 2024-12-21 04:11:50 +03:00
22 lines
797 B
C
22 lines
797 B
C
|
#import <Foundation/Foundation.h>
|
||
|
|
||
|
@class MSAnalyticsAuthenticationProvider;
|
||
|
|
||
|
/**
|
||
|
* Completion handler that returns the authentication token and the expiry date.
|
||
|
*/
|
||
|
typedef void (^MSAnalyticsAuthenticationProviderCompletionBlock)(NSString *token, NSDate *expiryDate);
|
||
|
|
||
|
@protocol MSAnalyticsAuthenticationProviderDelegate <NSObject>
|
||
|
|
||
|
/**
|
||
|
* Required method that needs to be called from within your authentication flow to provide the authentication token and expiry date.
|
||
|
*
|
||
|
* @param authenticationProvider The authentication provider.
|
||
|
* @param completionHandler The completion handler.
|
||
|
*/
|
||
|
- (void)authenticationProvider:(MSAnalyticsAuthenticationProvider *)authenticationProvider
|
||
|
acquireTokenWithCompletionHandler:(MSAnalyticsAuthenticationProviderCompletionBlock)completionHandler;
|
||
|
|
||
|
@end
|