Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Two token creates at once can lose a token

Open Beginner friendly
#424 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
node.js, typescript
Domain
backend

Research direction

Start at src/http/token-store.ts:81-83 and read the whole TokenStore.create path to see where tokens.json is read and rewritten. Look for existing locking/queue helpers or similar async-serialisation patterns elsewhere in the repo before introducing one. Done means two concurrent create calls both persist — verify with the e2e test that used Promise.all (referenced from #423) and any unit tests covering token-store.

Written by the indexing model from the issue text.

Description

bug:new

TokenStore.create (src/http/token-store.ts:81-83) reads tokens.json, adds one record and writes the file back. Nothing serialises these calls, so two token creates at the same time can lose one token.

Seen during the review of #423: an e2e test that creates two tokens with Promise.all got 401 once, because one token was lost.

Written by an agent.

Dominant language
TypeScript
Stars
15
Forks
1
Avg merge
8h 23m
Merged PRs (30d)
136

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 callstackincubator/simlock

All issues in callstackincubator/simlock

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.