supertokens / supertokens-node

Node SDK for SuperTokens core
https://supertokens.com
Other
281 stars 72 forks source link

fix: upgrade node-fetch to v3 #775

Closed anku255 closed 6 months ago

anku255 commented 6 months ago

Summary of change

This PR upgrades node-fetch to v3 because the earlier version didn't have methods like Response.json implemented (required by NextJS). Since, node-fetch v3 is esm only, we had to use .mjs extension for the polyfill..

Related issues

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

Remaining TODOs for this PR