You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
app.ts calls getDevUser() on every tRPC request, which reads DEV_USER_TELEGRAM_ID from env. Every request runs as the same hardcoded user — there's no real authentication.
Combined with wide-open CORS (app.use("*", cors())), anyone who finds the API URL can read/write all notes.
What needs to happen
Wire up Better Auth (already in the spec/dependencies)
Replace getDevUser() with real session-based auth in the tRPC context
Activity
GrassHeadd commentedon Mar 7, 2026
Superseded by #37.