Skip to content

[Bug]: Can access dashboard, even when not logged in #102

@Amogh-Nivaskar

Description

@Amogh-Nivaskar

Describe the bug

  1. Currently one can still access the dashboard even when one is not logged in, or even when the user's authentication token has expired.

To Reproduce

  1. Logout of the application if you are logged in
  2. Go to http://app.localhost:3000/dashboard
  3. You are still able to access the dashboard

Expected behavior

I think that if the user is not logged in or if their authentication token has expired, and he/she tries to access the dashboard or any of its child routes, the user should be redirected to the login page. We should protect this route. This leads to a better user experience.

Screenshots/Videos

image

Additional context

No response

Please checkmark the following checklist

  • I make sure that similar issue is not opened

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomershacktoberfestHacktoberfest Accepted Issues

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions