Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • L Lanestel Page Web
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Quang dung Truong
  • Lanestel Page Web
  • Merge requests
  • !19

Merged
Created Jul 27, 2026 by Quang dung Truong@quangdungMaintainer

fix(auth): unify token refresh through Node runtime to stop replay-attack kills

  • Overview 0
  • Commits 1
  • Pipelines 1
  • Changes 4

Middleware (Edge runtime) and client hooks (Node runtime) each refreshed the access token independently, sharing no in-memory mutex across the runtime boundary. After a long idle period both paths could fire with the same refresh_token at once — Java flags the second use as replay and invalidates the whole session, kicking the user to login.

Middleware now calls our own /api/auth/refresh route instead of hitting Java directly, and HttpAuthSessionRepository.refreshSession() dedupes concurrent calls for the same refresh_token so only one Java request goes out no matter which caller triggered it.

Also includes two small unrelated fixes: invoice row navigation now uses router.push instead of a Link so the whole row is clickable, and useAdminTransactions treats accountId as optional in the query string.

Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: feat/batiment