Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/core/classes/Iterable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -999,7 +999,7 @@ export class Iterable {
(promiseResult as IterableAuthResponse).authToken
);

const timeoutId = setTimeout(() => {
setTimeout(() => {
if (
authResponseCallback === IterableAuthResponseResult.SUCCESS
) {
Expand All @@ -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);
Expand Down