summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2019-03-25 12:03:28 -0400
committerJoel Fischer <joeljfischer@gmail.com>2019-03-25 12:03:28 -0400
commit2244e8fed6b174ac5edada6bc12f62645f836115 (patch)
tree639edef15029091243b8448a4cde3d86d9cef8ad
parent0b76c5d02fbeff18a4e8edab8ea0bdb0ec874129 (diff)
downloadsdl_ios-2244e8fed6b174ac5edada6bc12f62645f836115.tar.gz
Restore authToken
-rw-r--r--SmartDeviceLink/SDLManager.h5
-rw-r--r--SmartDeviceLink/SDLManager.m4
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;
}