Connecting Auth0 to MongoDB

Hi @marialena @buddhins @taitheexplore,

The issue seems related to the version of NodeJS you are running in your tenant (you can check your version here: https://manage.auth0.com/#/tenant/advanced).

The following versions of mongodb drivers are available for the following NodeJS versions:

  • NodeJS 18
    • 5.1.0
    • 5.7.0
  • NodeJS 16
    • 3.5.11
    • 3.1.4
    • 2.1.11

If you want to check other packages or other versions of node, please check out the following page:

https://auth0-extensions.github.io/canirequire/

By adjusting the right mongo driver to match your tenant’s NodeJS version your issue gets fixed.

Thanks

1 Like