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
go it. instead of using email
and password
.
I had to log in using client_id
, client_secrect
that was generated specifically for my customer. with specific privileges.
using the manage user interface under the API menu.
thank you all