From dfd160c142baac05261991a6f61e914f8da2b341 Mon Sep 17 00:00:00 2001 From: Loren Posen Date: Tue, 21 Oct 2025 09:10:28 -0700 Subject: [PATCH] refactor: remove node-only unref() call --- src/core/classes/Iterable.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/core/classes/Iterable.ts b/src/core/classes/Iterable.ts index 1d070856b..0fc5578c3 100644 --- a/src/core/classes/Iterable.ts +++ b/src/core/classes/Iterable.ts @@ -999,7 +999,7 @@ export class Iterable { (promiseResult as IterableAuthResponse).authToken ); - const timeoutId = setTimeout(() => { + setTimeout(() => { if ( authResponseCallback === IterableAuthResponseResult.SUCCESS ) { @@ -1018,8 +1018,6 @@ export class Iterable { ); } }, 1000); - // Use unref() to prevent the timeout from keeping the process alive - timeoutId.unref(); } else if (typeof promiseResult === typeof '') { //If promise only returns string RNIterableAPI.passAlongAuthToken(promiseResult as string);