auth0 / node-auth0

Node.js client library for the Auth0 platform.
MIT License
628 stars 307 forks source link

Type errorCode as possibly undefined #953

Closed frederikprijck closed 11 months ago

frederikprijck commented 11 months ago

Changes

There are situations where errorCode will not be defined, so we need to support the case where it will be undefined.

Note that this can potentially break existing users, but it would be a compile time breaking change, and it actually rectifies incorrect behavior and won't introduce run-time issues. So we should be okay to release this in a patch version.

References

Fixes #951

Checklist