openreader/src/app
Richard R c57b913cb5 feat(db/auth): migrate auth storage to Drizzle and add claimable data flow
- replace custom DB adapter with Drizzle setup (SQLite/Postgres schemas) and add `drizzle.config.ts` plus migrations in `drizzle/` and `drizzle_pg/`
- switch better-auth to drizzleAdapter, add auth helpers (`getAuthContext`, `requireAuthContext`, `requireAudiobookOwned`), and make `useAuth`/`useAuthSession` safe no-ops when auth is disabled
- persist documents/audiobooks in DB with ownership checks, unclaimed fallback, and ref-counted deletes; add FS scan helper for no-auth mode
- gate docx-to-pdf, library, voices, whisper, and migration endpoints behind auth when enabled
- add unclaimed data scan/claim flow with `/api/user/claim`, `ClaimDataModal`, and server-side scan/claim helpers
- refactor rate limiting and account deletion to use Drizzle tables (`user_tts_chars`, `user`)
- run migrations via `scripts/migrate-if-auth.mjs` (auto on `pnpm start` + `pnpm migrate`), remove Docker entrypoint and old better-auth migration file
- update README and lockfile for the new migration workflow and dependencies
2026-01-26 17:01:36 -07:00
..
api feat(db/auth): migrate auth storage to Drizzle and add claimable data flow 2026-01-26 17:01:36 -07:00
epub/[id] fix: remove unused imports and fix privacy popup text 2026-01-25 14:41:49 -07:00
html/[id] update(auth): enhance rate limiting with device/IP backstops and improve UI 2026-01-25 14:38:31 -07:00
pdf/[id] fix: remove unused imports and fix privacy popup text 2026-01-25 14:41:49 -07:00
signin update(auth): enhance rate limiting with device/IP backstops and improve UI 2026-01-25 14:38:31 -07:00
signup update(auth): enhance rate limiting with device/IP backstops and improve UI 2026-01-25 14:38:31 -07:00
apple-icon.png Apple web app capable changes 2025-01-26 16:49:05 -07:00
favicon.ico Apple web app capable changes 2025-01-26 16:49:05 -07:00
globals.css refactor(audiobook): standardize chapter regeneration APIs and UX 2025-11-16 21:10:32 -07:00
icon.png Apple web app capable changes 2025-01-26 16:49:05 -07:00
icon.svg Apple web app capable changes 2025-01-26 16:49:05 -07:00
layout.tsx feat(db/auth): migrate auth storage to Drizzle and add claimable data flow 2026-01-26 17:01:36 -07:00
manifest.json Apple web app capable changes 2025-01-26 16:49:05 -07:00
page.tsx fix: remove unused imports and fix privacy popup text 2026-01-25 14:41:49 -07:00
providers.tsx update(auth): enhance rate limiting with device/IP backstops and improve UI 2026-01-25 14:38:31 -07:00