fix: default cookie timeout 30s
This commit is contained in:
+1
-1
@@ -12,7 +12,7 @@
|
|||||||
- Query ID updater now tracks Following/Followers GraphQL operations.
|
- Query ID updater now tracks Following/Followers GraphQL operations.
|
||||||
- Query ID updater now tracks BookmarkFolderTimeline and keeps bookmark query IDs seeded.
|
- Query ID updater now tracks BookmarkFolderTimeline and keeps bookmark query IDs seeded.
|
||||||
- `following`/`followers` JSON user fields are now camelCase (`followersCount`, `followingCount`, `isBlueVerified`, `profileImageUrl`, `createdAt`).
|
- `following`/`followers` JSON user fields are now camelCase (`followersCount`, `followingCount`, `isBlueVerified`, `profileImageUrl`, `createdAt`).
|
||||||
- Cookie extraction timeout is now configurable (default 20s on macOS) via `--cookie-timeout` / `BIRD_COOKIE_TIMEOUT_MS`.
|
- Cookie extraction timeout is now configurable (default 30s on macOS) via `--cookie-timeout` / `BIRD_COOKIE_TIMEOUT_MS`.
|
||||||
## 0.4.1 — 2025-12-31
|
## 0.4.1 — 2025-12-31
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
@@ -129,7 +129,7 @@ Example `~/.config/bird/config.json5`:
|
|||||||
// Cookie source order for browser extraction (string or array)
|
// Cookie source order for browser extraction (string or array)
|
||||||
cookieSource: ["firefox", "safari"],
|
cookieSource: ["firefox", "safari"],
|
||||||
firefoxProfile: "default-release",
|
firefoxProfile: "default-release",
|
||||||
cookieTimeoutMs: 20000,
|
cookieTimeoutMs: 30000,
|
||||||
timeoutMs: 20000,
|
timeoutMs: 20000,
|
||||||
quoteDepth: 1
|
quoteDepth: 1
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -22,7 +22,7 @@ export type CookieSource = 'safari' | 'chrome' | 'firefox';
|
|||||||
const TWITTER_COOKIE_NAMES = ['auth_token', 'ct0'] as const;
|
const TWITTER_COOKIE_NAMES = ['auth_token', 'ct0'] as const;
|
||||||
const TWITTER_URL = 'https://x.com/';
|
const TWITTER_URL = 'https://x.com/';
|
||||||
const TWITTER_ORIGINS: string[] = ['https://x.com/', 'https://twitter.com/'];
|
const TWITTER_ORIGINS: string[] = ['https://x.com/', 'https://twitter.com/'];
|
||||||
const DEFAULT_COOKIE_TIMEOUT_MS = 20_000;
|
const DEFAULT_COOKIE_TIMEOUT_MS = 30_000;
|
||||||
|
|
||||||
function normalizeValue(value: unknown): string | null {
|
function normalizeValue(value: unknown): string | null {
|
||||||
if (typeof value !== 'string') {
|
if (typeof value !== 'string') {
|
||||||
|
|||||||
Reference in New Issue
Block a user