YRTTokenDelegate
|
@interface YRTTokenDelegate : NSObject |
Summary
Instance methods
|
- (void)onTokenReceivedWithToken:(nonnull NSString *)token; |
|
- (void)onPasswordRequiredWithData:(nonnull id<YRTPasswordRequiredData>)data; |
|
- (void)onTokenRefreshFailedWithMessage:(nonnull NSString *)message; |
Instance methods
onTokenReceivedWithToken:
|
- (void)onTokenReceivedWithToken:(nonnull NSString *)token; |
Token was received.
onPasswordRequiredWithData:
|
- (void)onPasswordRequiredWithData:(nonnull id<YRTPasswordRequiredData>)data; |
XToken is not valid anymore. Password must be re-entered.
The class maintains a strong reference to the object in the 'data' parameter until it (the class) is invalidated.
|
Parameters |
|
|
data |
Contains platform-specific data for user input. |
onTokenRefreshFailedWithMessage:
|
- (void)onTokenRefreshFailedWithMessage:(nonnull NSString *)message; |
An error occurred during OAuth token refresh (it might be a network error or an invalid response from the authentication server).