Skip to content

Dev - #253

Merged
vernu merged 4 commits into
mainfrom
dev
Aug 2, 2026
Merged

Dev#253
vernu merged 4 commits into
mainfrom
dev

Conversation

@vernu

@vernu vernu commented Aug 2, 2026

Copy link
Copy Markdown
Owner

No description provided.

vernu and others added 4 commits August 2, 2026 14:29
getSMSById and getSmsBatchById resolved records by id alone, so the device
in the route was not part of the query. Both now filter on the device, and
the batch id supplied in the sms-status body is matched the same way.

A record that does not belong to the device reads as not found, so a
mismatch is indistinguishable from a missing id.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The tokeninfo response was trusted without checking who the token was
issued for, so a token minted for any other Google OAuth client was
accepted. The audience is now matched against GOOGLE_CLIENT_ID and the
verified-email flag is required. The audience check is skipped with a
logged warning when the variable is unset, so an unconfigured environment
does not lose Google sign-in.

Password reset requests now return the same response whether or not the
address is registered, an unknown address on reset reports the same error
as a bad code, a non-string email no longer reaches the query, and the
code is drawn from crypto.randomInt.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The customer-support route accepted anonymous callers and only overwrote
the user field when one was authenticated, so the body could set it. The
route now requires authentication and always takes the user from the
token. The daily cap counts per authenticated user rather than per
self-reported email address.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
fix(api): scope record lookups to the caller and tighten auth checks
@vercel

vercel Bot commented Aug 2, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
textbee Ready Ready Preview Aug 2, 2026 11:40am

Request Review

@vernu
vernu merged commit f25b117 into main Aug 2, 2026
9 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.

1 participant