gitlink-cli/internal
wbtiger 993896ad6f fix: robust login token handling — verify token before storing
- Prefer autologin cookie over response body token (body token may be CSRF/session token)
- Use cookiejar to capture cookies across redirects
- Try all candidate tokens and verify each with /users/me API call
- Detect keyring store/load mismatch and auto-fallback to file storage
- Login now fails fast if no candidate token works, instead of silently storing a bad token

Fixes Windows 401 "无效token" after successful login. Also improves
reliability on headless Linux (no Secret Service) and edge cases on macOS.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-07 17:19:06 +08:00
..
auth fix: robust login token handling — verify token before storing 2026-04-07 17:19:06 +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