-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Overview
It seems that while the API allows restaurant managers to sign in, there is no mention of a method to handle authentication tokens or sessions once they are signed in. Implementing a secure authentication mechanism is crucial for managing user sessions efficiently.
Proposed Implementation
- JWT Authentication: Introduce JSON Web Tokens (JWT) that would allow restaurant managers to authenticate and maintain their session during operations.
- Endpoints:
- Login: A new endpoint to verify credentials and generate a JWT.
- Middleware: Add middleware to protect sensitive routes accessible only to authenticated users.
Benefits
- Ensures secure access for restaurant managers.
- Facilitates smoother and safer operations within the application.
- Helps in tracking user sessions for better security practices.
Additional Considerations
- Ensure proper handling of token expiration and refresh logic.
- Consider adding support for role-based access control (RBAC) to manage permissions for different user types.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels