Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prevent rejected getToken from breaking fetcher #7

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

jasisk
Copy link
Contributor

@jasisk jasisk commented Jul 17, 2024

fetcher would never recover if getToken threw for any reason.

@jasisk jasisk requested review from djMax and theoomoregbee July 17, 2024 17:45
});
await expect(introspect(), 'should not retry infinitely').resolves.toEqual({ status: 401, json: { active: false } });
server.service.off('beforeIntrospect', mockIntrospect);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This listener was bleeding out from the test, so removing it after the assertion.

@jasisk jasisk merged commit b54535b into main Jul 17, 2024
2 checks passed
@jasisk jasisk deleted the js/fix/handle-fetchtoken-errors branch July 17, 2024 17:57
Copy link

🎉 This issue has been resolved in version 1.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants