Skip to content

Two token creates at once can lose a token #424

Description

@V3RON

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.

Activity

  1. added
    bug:newReported. Nobody has looked yet.
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug:newReported. Nobody has looked yet.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions