We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8964cb commit 440ee4eCopy full SHA for 440ee4e
swift-sdk/Internal/AuthManager.swift
@@ -142,7 +142,11 @@ class AuthManager: IterableAuthManagerProtocol {
142
ITBInfo()
143
144
expirationRefreshTimer = Timer.scheduledTimer(withTimeInterval: interval, repeats: false) { [weak self] _ in
145
- self?.requestNewAuthToken(hasFailedPriorAuth: false)
+ if(self?.localStorage.email != nil && self?.localStorage.userId != nil) {
146
+ self?.requestNewAuthToken(hasFailedPriorAuth: false)
147
+ } else {
148
+ ITBDebug("Email or userId is not available. Skipping token refresh")
149
+ }
150
}
151
152
0 commit comments