From b6f0fbc272960717d16f7dfd392eaa2e01eab1e1 Mon Sep 17 00:00:00 2001 From: hani Date: Mon, 5 Feb 2024 17:00:08 +0530 Subject: [PATCH] Remove JWT token generation while user not logged in --- .../src/main/java/com/iterable/iterableapi/IterableApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java b/iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java index ff3baa679..b8552dbc4 100644 --- a/iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java +++ b/iterableapi/src/main/java/com/iterable/iterableapi/IterableApi.java @@ -443,7 +443,7 @@ private void retrieveEmailAndUserId() { IterableLogger.e(TAG, "retrieveEmailAndUserId: Shared preference creation failed. Could not retrieve email/userId"); } - if (config.authHandler != null) { + if (config.authHandler != null && checkSDKInitialization()) { if (_authToken != null) { getAuthManager().queueExpirationRefresh(_authToken); } else {