vahid-nejad / NextAuth_v5

42 stars 11 forks source link

**Issue: Accessing Protected Page without Login** #2

Open websharkdev opened 3 months ago

websharkdev commented 3 months ago

image

Description: Currently, there is an issue where users are able to access protected pages even when they are not logged in. This poses a security risk as sensitive information may be accessed by unauthorized users.

Steps to Reproduce:

  1. Log out of the application.
  2. Navigate to the URL of a protected page.
  3. Notice that the page loads successfully without requiring authentication.

Expected Behavior: Users should not be able to access protected pages without logging in. Access should be restricted to authenticated users only.

Impact: This issue compromises the security of the application and exposes sensitive information to unauthorized users.

Priority: High

Proposed Solution: Implement proper authentication checks on protected routes to ensure that only logged-in users can access them. This may involve updating route guards or middleware to verify the user's authentication status before allowing access to protected pages.

Additional Information:

websharkdev commented 3 months ago

image