Login sequence thenCatch returned nil which was interpreted as the error was recovered from and caused the subsequent commands to be executed as if there was no error. Changed that to rejected promise.
There was a bunch of rejectAllPromises on failure which interfered with these promises being recovered in the step above + promise garbage collector on timer.
There were two thenCatch in the same sequence with the same logic. I removed one.
There are a few resolveAllPromises in login sequence. They were copied from Android. I think they are no longer necessary. I'll remove them from android first and if it does not cause any problems then will remove from iOS.
thenCatch
returnednil
which was interpreted as the error was recovered from and caused the subsequent commands to be executed as if there was no error. Changed that to rejected promise.rejectAllPromises
on failure which interfered with these promises being recovered in the step above + promise garbage collector on timer.thenCatch
in the same sequence with the same logic. I removed one.There are a few
resolveAllPromises
in login sequence. They were copied from Android. I think they are no longer necessary. I'll remove them from android first and if it does not cause any problems then will remove from iOS.