panva/oauth4webapi

Node.js support

panva opened this issue · 0 comments

panva commented

Fetch API and Web Crypto API globals are not available in prior Node.js versions but they can be enabled via node's CLI.

  • Node.js 18.x versions require the --experimental-global-webcrypto command-line flag.
  • Node.js 19.x and newer versions require no command-line flags 🎉.

These may be provided to the node executable as command-line flags

node --experimental-global-webcrypto ...

or via the NODE_OPTIONS environment variables, e.g.

export NODE_OPTIONS='--experimental-global-webcrypto'