feat: protect write endpoints with JWT auth (story #08)

Add bcrypt user file auth, JWT middleware on all write routes, Pinia
authStore with localStorage persistence, login view with redirect
support, and v-if guards on all CRUD controls and admin nav link.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
juliaandClaude Sonnet 4.6 committed 2026-06-19 11:18:42 +02:00
1 parent 649c9687ac
commit 1b381d9385
32 files changed
+895 -56

No files matched your search

+4
View File
@@ -0,0 +1,4 @@
DATABASE_URL=postgres://osdb:osdb@localhost:5432/osdb
PORT=3000
JWT_SECRET=change-me-use-a-long-random-string
USERS_FILE=../users.env