Rule cannot import auth0 library

This part of code works well for the month, and today sometimes throw:
CANNOT FIND MODULE ‘AUTH0@2.19.0’
Can you help me to solve that?

var ManagementClient = require(‘auth0@2.19.0’).ManagementClient;

  var management = new ManagementClient({
    clientId: configuration.LOG_APP_ID,
    clientSecret: configuration.LOG_APP_KEY,
    scope: 'read:logs',
    domain: auth0.domain
  });

Hi @sinallcom,

This page shows what modules are available in rules:

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

It looks like 2.17 is the latest available.

Hope this helps!

Thanks,
Dan

But how its work last 3 weeks on version 2.19.0 ?

If it is not listed in on the ‘can i require’ webpage then there is no guarantee it is supported.

Best,
Dan

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.