Skip to content

Harden ig session import#3

Merged
kevinjylin merged 4 commits into
mainfrom
harden-ig-session-import
May 29, 2026
Merged

Harden ig session import#3
kevinjylin merged 4 commits into
mainfrom
harden-ig-session-import

Conversation

@kevinjylin
Copy link
Copy Markdown
Member

No description provided.

kevinjylin and others added 3 commits May 29, 2026 02:09
import_safari_session.py would overwrite a working session file with a
logged-out/empty cookie jar and still print SUCCESS, and gave no signal
when it re-imported a stale session (the usual cause of the recurring
400 "invalid request" on the stories endpoint: browser_cookie3 reads
Safari's on-disk cookie file, which Safari flushes lazily, so importing
while Safari is open re-saves the old session).

Now it:
- prints a ⌘Q-Safari-first reminder explaining the flush gotcha
- refuses to write if no sessionid cookie was captured (logged out / not
  flushed), instead of clobbering a good session file
- reads the previously-saved sessionid and warns when the import did not
  actually capture a new login
- prints the masked sessionid so the rotation can be verified

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
highlander-hub Ready Ready Preview, Comment May 29, 2026 10:13am

@kevinjylin kevinjylin merged commit d623746 into main May 29, 2026
6 checks passed
@kevinjylin kevinjylin deleted the harden-ig-session-import branch May 29, 2026 10:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant