twitter-web-auth
v0.1.6
Published
Generates Twitter web auth token
Downloads
7
Readme
twitter-web-auth
Generates Twitter web auth token
Get auth token
const response = await getAuthToken({ email, username, password });
// response
// {
// "authToken": "<authToken>",
// "bearer": "<bearer>",
// "csrfToken": "<csrfToken>",
// "guestToken": "<guestToken>"
// }
Get only guest token
const response = await getAuthToken();
// response
// {
// "bearer": "<bearer>",
// "csrfToken": "<csrfToken>",
// "guestToken": "<guestToken>"
// }
Generate new CSRF Token
const newCsrfToken = generateCsrfToken();