@@ -209,7 +209,8 @@ export class IterableConfig {
209209 > ;
210210
211211 /**
212- * A callback function which is called when an error occurs while validating a JWT.
212+ * A callback function that is called when the SDK encounters an error while
213+ * validing the JWT.
213214 *
214215 * The retry for JWT should be automatically handled by the native SDK, so
215216 * this is just for logging/transparency purposes.
@@ -234,7 +235,8 @@ export class IterableConfig {
234235 logLevel : IterableLogLevel = IterableLogLevel . info ;
235236
236237 /**
237- * The retry policy to use when retrying a request.
238+ * Configuration for JWT refresh retry behavior.
239+ * If not specified, the SDK will use default retry behavior.
238240 */
239241 retryPolicy ?: IterableRetryPolicy ;
240242
@@ -357,6 +359,13 @@ export class IterableConfig {
357359 */
358360 // eslint-disable-next-line eqeqeq
359361 authHandlerPresent : this . authHandler != undefined ,
362+ /**
363+ * A boolean indicating if an onJWTError handler is present.
364+ *
365+ * TODO: Figure out if this is purposeful
366+ */
367+ // eslint-disable-next-line eqeqeq
368+ onJWTErrorPresent : this . onJWTError != undefined ,
360369 /** The log level for the SDK. */
361370 logLevel : this . logLevel ,
362371 expiringAuthTokenRefreshPeriod : this . expiringAuthTokenRefreshPeriod ,
@@ -367,6 +376,7 @@ export class IterableConfig {
367376 dataRegion : this . dataRegion ,
368377 pushPlatform : this . pushPlatform ,
369378 encryptionEnforced : this . encryptionEnforced ,
379+ retryPolicy : this . retryPolicy ,
370380 } ;
371381 }
372382}
0 commit comments