When executing the following code within a custom db login script, I get an error message AuthenticationClient is not a constructor:
const AuthenticationClient = require(‘auth0’).AuthenticationClient;
const auth0 = new AuthenticationClient({
domain: ‘mydomain.eu.auth0.com’,
clientId: configuration.ROPG_CLIENT_ID
});
Thanks in advance for any advise what’s wrong here.