gitlink-cli/internal
wbtiger 95fdee5cd8 fix: use cookie-based auth for login — resolves Windows 401
Root cause: GitLink login API returns session cookies (autologin_trustie),
not API access_tokens. The old code tried to use the cookie value as an
access_token query parameter, which GitLink rejects.

Fix: store auth cookies with "cookie:" prefix. Transport detects the
prefix and sends credentials as Cookie header instead of access_token
param. Private tokens (from --token mode) continue to use access_token
param — fully backward compatible.

Verified: login → store cookie → GetCurrentUser → repo list all pass.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-08 13:01:55 +08:00
..
auth fix: use cookie-based auth for login — resolves Windows 401 2026-04-08 13:01:55 +08:00
client initial commit: gitlink-cli project 2026-04-02 16:50:00 +08:00
config initial commit: gitlink-cli project 2026-04-02 16:50:00 +08:00
context initial commit: gitlink-cli project 2026-04-02 16:50:00 +08:00
output initial commit: gitlink-cli project 2026-04-02 16:50:00 +08:00