auth0 / node-auth0

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

fix: makes node version undefined when process.version is undefined #1027

Open emmanuelgautier opened 1 month ago

emmanuelgautier commented 1 month ago

Changes

Makes node version undefined when process.version is undefined. process.version can be undefined on some edge runtimes like cloudflare workers.

References

Testing

  1. Create a Node.js worker
  2. Instantiate an Auth0 client and perform a request with this client

Expected: No error should be thrown.

Checklist