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:
1 parent
649c9687ac
commit
1b381d9385
32 files changed
+895
-56
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user