We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c506b8 commit fd5a888Copy full SHA for fd5a888
lib/routes/twitter/api/web-api/utils.ts
@@ -14,8 +14,9 @@ import login from './login';
14
let authTokenIndex = 0;
15
16
const token2Cookie = async (token) => {
17
- if (cache.get(`twitter:cookie:${token}`)) {
18
- return cache.get(`twitter:cookie:${token}`);
+ const c = await cache.get(`twitter:cookie:${token}`);
+ if (c) {
19
+ return c;
20
}
21
const jar = new CookieJar();
22
jar.setCookieSync(`auth_token=${token}`, 'https://x.com');
0 commit comments