auth0 / node-auth0

Node.js client library for the Auth0 platform.
MIT License
630 stars 309 forks source link

[SDK-4485] Use native fetch, drop Node 16 support #906

Closed adamjmcgrath closed 1 year ago

adamjmcgrath commented 1 year ago

Changes

Use native fetch by default - this has the benefit of working on Vercel Edge / Cloudflare Workers without modification (will also be easier to drop Node 16)

Also, remove dependency on ReadStream api since this is Node only. It does make uploading files a little harder, but this should be ok if we have examples.