[BUG]: GitHub data cache is not tied to auth scope and survives PAT deletion

Open
#446 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@Basharkhan7776 is already working on this.

Since Nov 8, 2026.

  • #448 by @Basharkhan7776 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
github, javascript
Domain
api, database, security

Research direction

Start by tracing the API response cache calls, including cacheGet(url), and the PAT deletion flow that removes the token and rate-limit entry. Check how IndexedDB stores entries and how requests distinguish authenticated from unauthenticated responses. Done means private data is no longer accessible after PAT deletion and adding a PAT does not reuse incomplete unauthenticated responses.

Written by the indexing model from the issue text.

Description

bug
Bug Description

API responses are cached in IndexedDB by URL only:

const cached = await cacheGet(url)
if (cached) return cached

The cache key does not include whether the request was authenticated, which token/account was used, or what permissions that token had. Deleting the PAT removes the token and rate-limit entry but does not clear cached GitHub data.

This creates two problems:

  1. Data fetched with a private-repo-capable PAT remains readable in IndexedDB after the PAT is deleted.
  2. Data fetched without a PAT can be served from cache after a PAT is added, so the “complete analysis” may reuse incomplete unauthenticated responses.
Steps to Reproduce
  1. Save a PAT that can read private repositories.
  2. Explore an organization and open several pages so responses are cached.
  3. Delete the PAT in Settings.
  4. Open DevTools → Application → IndexedDB → orgexplorer_cache or orgexplorer.
  5. Observe that cached GitHub response data remains.
Impact

High - Major feature is broken

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
Dominant language
JavaScript
Stars
53
Forks
187
Avg merge
18m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OrgExplorer

All issues in AOSSIE-Org/OrgExplorer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.