Skip to content

Commit

Permalink
fix(twitter): await set cookie (DIYgod#17545)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnosnay authored Nov 11, 2024
1 parent 72d9c0e commit a8ae1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/routes/twitter/api/web-api/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const token2Cookie = async (token) => {
return c;
}
const jar = new CookieJar();
jar.setCookieSync(`auth_token=${token}`, 'https://x.com');
await jar.setCookie(`auth_token=${token}`, 'https://x.com');
try {
const agent = proxy.proxyUri
? new ProxyAgent({
Expand Down

0 comments on commit a8ae1e1

Please sign in to comment.