Thank you for reading this question.
we wish to grand our users to fetch data from our servers using batch process.
they are using node.js.
this is what I have tried to do that with no success. can you help me, please?
var AuthenticationClient = require('auth0').AuthenticationClient;
var auth0 = new AuthenticationClient({
domain: '...',
clientId: '...'
});
var data = {
username: 's@gmail.com ',
password: '*****'
};
console.log(auth0.oauth.oauth.token); //<---- undefined
auth0.oauth.token(data, function (err, userData) {
if (err) { // Handle error. }
console.log(userData);
});
Thank you so much