Authentication Client Signin API failing

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

Hey there @elee, It looks like you have an active support ticket with our team. To minimize duplicating effort we will let our support team internally take the lead on this but we will share the solution at the end. Please let us know if there is anything that comes up in the mean time. Thanks!

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