Skip to content

Commit 32b3a08

Browse files
committed
don't start auth process unless delegate is set
1 parent c7be80b commit 32b3a08

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

swift-sdk/Internal/AuthManager.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ class AuthManager: IterableAuthManagerProtocol {
2222
self.dateProvider = dateProvider
2323
self.expirationRefreshPeriod = expirationRefreshPeriod
2424

25-
retrieveAuthToken()
25+
if self.delegate != nil {
26+
retrieveAuthToken()
27+
}
2628
}
2729

2830
deinit {

0 commit comments

Comments
 (0)