-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers
Description
Summary
Add user authentication so comics can be associated with users and access can be controlled.
Scope
- Backend: JWT-based auth (register, login, logout)
- Backend: Protect comic routes (create/update/delete require auth; list/detail can be public)
- Backend: Associate comics with
author(user ID) - Frontend: Login/register pages
- Frontend: Auth context or state (store token, user)
- Frontend: Guard create/edit routes; show "My Comics" vs public list
- Persist token (e.g. localStorage) and handle refresh/expiry
Notes
- Auth middleware and JWT_SECRET already exist in
backend/src/middleware/auth.jsbut may need wiring. - Comic model has
author: ObjectIdfield.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestgood first issueGood for newcomersGood for newcomers