Login-/Session-/Passkey-Logik vollständig entfernen

Die App läuft künftig nur noch lokal, daher ist Anmeldung nicht mehr
nötig: Proxy-Middleware, Login-Seite, Session-Handling, Passkey/WebAuthn
(inkl. DB-Tabelle tabletten_passkeys), Logout-Button und der
Einstellungen-Tab (enthielt ausschließlich Passkey-Verwaltung) entfallen.
Der eigenständig per CHECK_SECRET geschützte Cron-Endpoint /api/check
sowie SMTP- und MongoDB-Auth (lib/mailService.ts, lib/mongodb.ts) sind
davon unabhängig und bleiben unverändert. Nicht mehr benötigte
Abhängigkeiten (@simplewebauthn/*, bcryptjs, jose) sowie die
zugehörigen Env-Variablen (AUTH_USERS, AUTH_SECRET, TABLETTEN_RP_*)
wurden aus package.json, compose.yml und docker-compose.yml gestrichen.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
2026-08-21 14:19:51 +02:00
parent 96043efe46
commit 3b4e893ca1
19 changed files with 2 additions and 1292 deletions
-6
View File
@@ -40,11 +40,5 @@ services:
# App
VORLAUF: ${VORLAUF:-14}
CHECK_SECRET: ${CHECK_SECRET}
AUTH_USERS: ${AUTH_USERS}
AUTH_SECRET: ${AUTH_SECRET}
# Passkeys (WebAuthn) — braucht HTTPS oder localhost
RP_ID: ${TABLETTEN_RP_ID:-localhost}
RP_ORIGIN: ${TABLETTEN_RP_ORIGIN:-http://localhost:3000}
RP_NAME: ${TABLETTEN_RP_NAME:-Tabletten-Check}
env_file:
- .env.local