You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, First of all thank you for creating this package, I'm finding it very useful. I'm having an issue with gracefully handling the error when refresh() fails to produce a valid token. Returning a resolved promise from refresh() with no token causes _schedule() to throw internally. A rejected promise from referesh() is re-thrown in execute(). In both cases the resulting rejected promise cannot be handled in user code resulting in an unhandled rejection error.
The text was updated successfully, but these errors were encountered:
@apomortsev - thanks for reporting, I'll get a unit test in to try and repro your findings and get it patched up (today / this weekend depending on time).
Hi @puneetverma05, no, not at the time. But it's been some time and chances are there might be some similar or more suitable packages around, but I never checked.
Hello, First of all thank you for creating this package, I'm finding it very useful. I'm having an issue with gracefully handling the error when refresh() fails to produce a valid token. Returning a resolved promise from refresh() with no token causes _schedule() to throw internally. A rejected promise from referesh() is re-thrown in execute(). In both cases the resulting rejected promise cannot be handled in user code resulting in an unhandled rejection error.
The text was updated successfully, but these errors were encountered: