-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
featureNew functionality or behaviorNew functionality or behavior
Description
✨ Feature Description
Create a reusable @login_required decorator to protect authenticated routes.
🧩 Problem Statement
Sensitive endpoints must not be accessible to unauthenticated users. Repeating auth logic in every route leads to duplication and errors.
💡 Proposed Solution
Implement a custom decorator that:
• Validates authentication (JWT or session)
• Attaches user context to the request
• Rejects unauthorized access with proper HTTP status codes
🔄 Alternatives Considered
📋 Acceptance Criteria
• @login_required decorator exists
• Unauthorized requests return 401
• Authenticated user context is accessible in routes
• Decorator is reusable across services
🔗 Related Issues / Links
📎 Additional Context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureNew functionality or behaviorNew functionality or behavior
Type
Projects
Status
Todo