Skip to content

fix: add IndexedDB fallback for xoxc token extraction#5

Open
kimjisub wants to merge 1 commit intotherohitdas:mainfrom
kimjisub:fix/indexeddb-token-fallback
Open

fix: add IndexedDB fallback for xoxc token extraction#5
kimjisub wants to merge 1 commit intotherohitdas:mainfrom
kimjisub:fix/indexeddb-token-fallback

Conversation

@kimjisub
Copy link
Copy Markdown

Summary

  • Some Slack desktop versions store xoxc- session tokens in IndexedDB blob files rather than LevelDB Local Storage
  • When existing LevelDB scans (Methods 1 & 2) find no tokens, a new Method 3 recursively scans IndexedDB/ blob files as a fallback
  • No behavioral change when LevelDB extraction succeeds — the new path only activates when tokens.size === 0

Test plan

  • Verify slk auth works on a machine where LevelDB contains the token (existing behavior unchanged)
  • Verify slk auth works on a machine where the token is only in IndexedDB blobs (new fallback path)
  • Verify token cache (~/.local/slk/token-cache.json) is created after successful auth via IndexedDB path

🤖 Generated with Claude Code

Some Slack desktop versions store the xoxc- session token in IndexedDB
blob files instead of the LevelDB Local Storage. When the existing
LevelDB scan (Methods 1 & 2) finds no tokens, this adds a Method 3
that recursively scans IndexedDB blob files as a fallback.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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