Skip to content

Commit 54a3e1d

Browse files
committed
Remove JWT token generation if user not logged in
1 parent 390892d commit 54a3e1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-sdk/Internal/AuthManager.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class AuthManager: IterableAuthManagerProtocol {
1616
self.dateProvider = dateProvider
1717
self.expirationRefreshPeriod = expirationRefreshPeriod
1818

19-
if self.delegate != nil {
19+
if self.delegate != nil && IterableAPI.email != nil && IterableAPI.userId != nil {
2020
retrieveAuthToken()
2121
}
2222
}

0 commit comments

Comments
 (0)