20. As a developer, I want to ensure that the user is logged in before they interact with any pages on the app so that they can fully experience the app. #64
Open
Description
🧗🏽 Challenge
The app’s users need to be logged in to interact with its pages, which ensures a secure and personalized experience. This is critical as the app’s core functionality relies on user authentication, preventing unauthorized access. By implementing a login validation check, we can guarantee a seamless and secure flow, aligning with our broader goals for security and user experience.
⚡️ Solution
To ensure secure access, authentication middleware will be implemented to verify if users are logged in before allowing access to any pages.
✅ Acceptance Criteria
- User is redirected to the login page if they are not authenticated and try to access any part of the app.
- Once logged in, the user can navigate freely through the app’s pages.
- Tests are created to validate that unauthenticated users are correctly redirected.
- A hook is created that can be imported across the app to check if the user is logged in.
- A happy path is documented.
Metadata
Assignees
Labels
No labels