Closed ishaanbuildsthings closed 11 months ago
const threadsAPI = new ThreadsAPI({
username: '_junhoyeo', // Your username
password: 'PASSWORD', // Your password
});
const token = await threadsAPI.getToken();
console.log(token);
console.log(threadsAPI.token);
Thanks for making this API,
I am trying to generate a token so I can be authenticated, and access private routes using my token + userID, as opposed to a user + pass. How do I generate this token? I saw that we use the
login
function call but I couldn't figure out how to get it working nor find documentation.