We’ve had this code working for months (and haven’t changed anything) and all the sudden it is failing now.
var data = {
username: email,
password: password,
connection: “Username-Password-Authentication”,
};
var AuthenticationClient = require(‘auth0’).AuthenticationClient;
var auth0 = new AuthenticationClient({
domain: process.env.AUTH0_DOMAIN,
clientId: process.env.AUTH0_CLIENT_ID
});
auth0.database.signIn(data, function (err, userData) {
This now throws an error:
TypeError [ERR_INVALID_ARG_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined
at Function.from (buffer.js:200:11)
Has anyone seen this or have any suggested fixes? Thanks in advance for any help