Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Dec 16, 2024
1 parent 9692b96 commit 0c0d01b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/app/lib/twitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ export class TwitterService {
private async setCookiesFromArray(cookiesArray: TwitterCookie[]) {
const cookieStrings = cookiesArray.map(
(cookie) =>
`${cookie.key}=${cookie.value}; Domain=${cookie.domain}; Path=${cookie.path}; ${cookie.secure ? "Secure" : ""
}; ${cookie.httpOnly ? "HttpOnly" : ""}; SameSite=${cookie.sameSite || "Lax"
`${cookie.key}=${cookie.value}; Domain=${cookie.domain}; Path=${cookie.path}; ${
cookie.secure ? "Secure" : ""
}; ${cookie.httpOnly ? "HttpOnly" : ""}; SameSite=${
cookie.sameSite || "Lax"
}`,
);
await this.client.setCookies(cookieStrings);
Expand Down

0 comments on commit 0c0d01b

Please sign in to comment.