Commit 2db9c0e
authored
fix: GitHub token stored in client-side localStorage for API calls — tok... (JhaSourav07#2022)
## Description
Fixes JhaSourav07#2017 — GitHub token stored in client-side localStorage for API
calls — token can be exfiltrated via XSS. Add server-only import guard
to ensure GITHUB_PAT / GITHUB_TOKEN are never bundled into browser
JavaScript.
## Pillar
- [ ] 🎨 Pillar 1 — New Theme Design
- [ ] 📐 Pillar 2 — Geometric SVG Improvement
- [ ] 🕐 Pillar 3 — Timezone Logic Optimization
- [x] 🛠️ Other (Bug fix, refactoring, docs)
## Visual Preview
_This is a logic/security fix — no visual changes expected._
## Checklist before requesting a review:
- [ ] I have read the `CONTRIBUTING.md` file.
- [ ] I have tested these changes locally.
- [ ] I have run `npm run format` and `npm run lint` locally and
resolved all errors.
- [ ] I have run `npm run test` and all tests pass locally.
- [ ] I have run `npm run test:coverage` and branch coverage is at or
above 70%.
- [ ] My commits follow the Conventional Commits format.
- [ ] I have started the repo.
- [ ] I have made sure that i have only one commit to merge in this PR.
- [ ] The SVG output matches the CommitPulse "premium quality" aesthetic
standard.
## Related Issue
Closes JhaSourav07#20174 files changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | 19 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments