diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2019-03-25 12:03:28 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2019-03-25 12:03:28 -0400 |
commit | 2244e8fed6b174ac5edada6bc12f62645f836115 (patch) | |
tree | 639edef15029091243b8448a4cde3d86d9cef8ad | |
parent | 0b76c5d02fbeff18a4e8edab8ea0bdb0ec874129 (diff) | |
download | sdl_ios-2244e8fed6b174ac5edada6bc12f62645f836115.tar.gz |
Restore authToken
-rw-r--r-- | SmartDeviceLink/SDLManager.h | 5 | ||||
-rw-r--r-- | SmartDeviceLink/SDLManager.m | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/SmartDeviceLink/SDLManager.h b/SmartDeviceLink/SDLManager.h index b0a0fbe08..91aece5e5 100644 --- a/SmartDeviceLink/SDLManager.h +++ b/SmartDeviceLink/SDLManager.h @@ -85,6 +85,11 @@ typedef void (^SDLManagerReadyBlock)(BOOL success, NSError *_Nullable error); @property (strong, nonatomic, readonly, nullable) SDLRegisterAppInterfaceResponse *registerResponse; /** + * The auth token, if received. This should be used to log into a user account. Primarily used for cloud apps with companion app stores. + */ +@property (strong, nonatomic, readonly, nullable) NSString *authToken; + +/** * The manager's delegate. */ @property (weak, nonatomic, nullable) id<SDLManagerDelegate> delegate; diff --git a/SmartDeviceLink/SDLManager.m b/SmartDeviceLink/SDLManager.m index c2e5f5c0f..0cf027401 100644 --- a/SmartDeviceLink/SDLManager.m +++ b/SmartDeviceLink/SDLManager.m @@ -97,6 +97,10 @@ NS_ASSUME_NONNULL_BEGIN return self.lifecycleManager.registerResponse; } +- (nullable NSString *)authToken { + return self.lifecycleManager.authToken; +} + - (nullable id<SDLManagerDelegate>)delegate { return self.lifecycleManager.delegate; } |