Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
5 tasks
ahsanatzapier opened this issue Sep 29, 2024 · 0 comments

Comments

@ahsanatzapier
Copy link
Collaborator

🧗🏽 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.
@kweeuhree kweeuhree changed the title 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. 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. Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant