Skip to content

Cookie bridge imports only auth cookies, losing session state #216

@andrema2

Description

@andrema2

Problem

The cross-platform cookie bridge (import_cookies) only imports li_at and li_rm cookies, discarding all other LinkedIn session cookies (JSESSIONID, bcookie, lidc, bscookie, liap, etc.).

This causes authentication to fail silently when the native Chromium profile can't decrypt cookies (e.g., macOS → Docker). The cookie bridge recovers auth tokens but the missing session cookies cause LinkedIn to return empty/partial responses.

Expected Behavior

All LinkedIn cookies should be imported during the cookie bridge flow, not just the two auth tokens.

Steps to Reproduce

  1. Login on macOS with --login
  2. Run MCP server in Docker (or after Cookies DB becomes unreadable)
  3. Cookie bridge activates, imports only li_at + li_rm
  4. LinkedIn returns empty responses despite valid auth tokens

Proposed Fix

Change import_cookies() to import all LinkedIn domain cookies while still validating that li_at/li_rm are present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions