Skip to content

Fix concurrent password reset token reuse - #131

Merged
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/password-reset-token-race
Aug 1, 2026
Merged

Fix concurrent password reset token reuse#131
ralyodio merged 1 commit into
profullstack:masterfrom
rissrice2105-agent:fix/password-reset-token-race

Conversation

@rissrice2105-agent

Copy link
Copy Markdown
Contributor

Summary

  • atomically claim password reset tokens in a write transaction
  • reject concurrent reset attempts before password/session changes
  • keep password update, token invalidation, and session deletion in the same transaction

Fixes #130

Validation

  • pnpm --filter @aiornot/web exec vitest run lib/auth.test.ts (5/5)
  • pnpm --filter @aiornot/web test (128/128)
  • pnpm --filter @aiornot/web typecheck
  • pnpm --filter @aiornot/web lint (0 errors; 7 pre-existing warnings)
  • git diff --check

@ralyodio
ralyodio merged commit 8ac62d4 into profullstack:master Aug 1, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Password reset token can be consumed by concurrent requests

2 participants