File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,8 @@ class AuthManager: IterableInternalAuthManagerProtocol {
43
43
44
44
// @objc attribute only needed for the pre-iOS 10 Timer constructor in queueAuthTokenExpirationRefresh
45
45
@objc func requestNewAuthToken( hasFailedPriorAuth: Bool = false , onSuccess: AuthTokenRetrievalHandler ? = nil ) {
46
+ ITBInfo ( )
47
+
46
48
guard !pendingAuth else {
47
49
return
48
50
}
@@ -61,6 +63,8 @@ class AuthManager: IterableInternalAuthManagerProtocol {
61
63
}
62
64
63
65
func logoutUser( ) {
66
+ ITBInfo ( )
67
+
64
68
authToken = nil
65
69
66
70
storeAuthToken ( )
@@ -70,9 +74,8 @@ class AuthManager: IterableInternalAuthManagerProtocol {
70
74
71
75
// MARK: - Private/Internal
72
76
73
- private var expirationRefreshTimer : Timer ?
74
-
75
77
private var authToken : String ?
78
+ private var expirationRefreshTimer : Timer ?
76
79
77
80
private var pendingAuth : Bool = false
78
81
private var hasFailedPriorAuth : Bool = false
@@ -107,6 +110,8 @@ class AuthManager: IterableInternalAuthManagerProtocol {
107
110
}
108
111
109
112
private func queueAuthTokenExpirationRefresh( _ authToken: String ? ) {
113
+ ITBInfo ( )
114
+
110
115
guard let authToken = authToken, let expirationDate = AuthManager . decodeExpirationDateFromAuthToken ( authToken) else {
111
116
return
112
117
}
Original file line number Diff line number Diff line change @@ -552,7 +552,9 @@ extension InAppManager: InAppNotifiable {
552
552
func scheduleSync( ) -> Future < Bool , Error > {
553
553
ITBInfo ( )
554
554
555
- return InAppManager . getAppIsReady ( applicationStateProvider: applicationStateProvider, displayer: displayer) . flatMap { self . scheduleSync ( appIsReady: $0) }
555
+ return InAppManager . getAppIsReady ( applicationStateProvider: applicationStateProvider,
556
+ displayer: displayer)
557
+ . flatMap { self . scheduleSync ( appIsReady: $0) }
556
558
}
557
559
558
560
private func scheduleSync( appIsReady: Bool ) -> Future < Bool , Error > {
You can’t perform that action at this time.
0 commit comments