Skip to content

Dashboard need to be locked 1st login/sSignup to access the page #1038

@Amrit1604

Description

@Amrit1604

🧩 Summary

Implement authentication-based access control to ensure that the dashboard page remains locked for unauthenticated users. Only users who have successfully logged in or signed up should be able to view or interact with the dashboard.

🎯 Motivation

Currently, the dashboard can be accessed without verifying user authentication, which poses potential security and privacy risks.
By restricting access to authenticated users only, we can:

Prevent unauthorized data exposure

Maintain a consistent and secure user experience

Strengthen the overall application’s access control mechanism

💡 Possible Solution

Implement authentication middleware (for backend routes) or route guards (for frontend routes).

Verify if a valid user session, token, or cookie exists before allowing dashboard access.

Redirect unauthenticated users to the Login or Signup page.

Optionally, show a toast or alert message like “Please log in to continue.”

🧱 Additional Context

This feature aligns with best practices for user authentication and session security.

It will enhance the app’s reliability and help prepare for future role-based access control (RBAC) features.

This issue is being raised under GSSoC '25 (GirlScript Summer of Code).

🚀 Request

I’d love to work on this issue under GSSoC '25.
Please assign it to me so I can begin the implementation. 🙌

🏷️ Tags:

GSSoC25 enhancement authentication backend frontend security

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions