Demo: a static copy of one review, without the review service. Reviewed marks apply in this tab until it reloads, and view settings stay in this browser. Comments, decisions, and publication need an installed mcp-review. About mcp-review · Get early access

Snapshot #2 of 2

Harden sign-in: hashed passwords, expiring sessions and per-session rate limits

Coverage

Presentation
All 143 selected changes are placed. 132 in groups · 0 unbucketed · 4 generated · 7 without a text diff
Explanations
13 of 13 groups have an explanation.
Agent analysis
Reading the analysis status…
Human review
7 of 136 hunks are marked reviewed.

Outdated discussions 1

These discussions have no verified location in the displayed changes. Each keeps its original code and stays open to replies and resolution.

OPEN src/auth.ts Outdated · Ln 27 This token is the user name and the time of the request, so anyone who knows roughly when a user refreshed can guess it. Should it be random, like the session I…
src/auth.ts · new side · Ln 27

The selected new-side lines no longer exist in src/auth.ts.

  session.token = `tok-${session.user}-${Date.now()}`;
You

This token is the user name and the time of the request, so anyone who knows roughly when a user refreshed can guess it. Should it be random, like the session ID in createSession?

Review agent

Yes. The next snapshot sets the token with crypto.randomUUID(), as createSession does for the session ID, so the token no longer depends on the user name or the clock.

Job logging rename

Every scheduled job moves from the old logger module to the structured log module. The two examples show the whole change; the other jobs repeat it exactly.

Mechanical change · 6 files · 6 hunks

Replace import { logger } from '../lib/logger'; with import { log } from '../lib/log';, and each logger.info( call with log.info(. Nothing else changes.

Verification:

Applied both replacements to the captured old side of each job file and compared the result with its captured new side: all six files match exactly. No job ran.

2 files below show the representative examples, and 4 matching files wait in the remaining group. A reviewed example marks only its own file.

src/jobs/cleanup.ts
+3 -3

The changes load when the file comes near.

src/jobs/digest.ts
+3 -3

The changes load when the file comes near.

Remaining matching changes

4 files · 4 hunks · +12 -12

All 4 remaining files
+3,574 -1,766 left