Skip to content

Conversation

@try-catch-stack
Copy link

CSOC Task 3 Submission

I have completed the following tasks

  • Login
  • auth_required.js and no_auth_required.js
  • Add Task
  • Get Tasks
  • Edit Task
  • Delete Task

Deployed WebSite

Comment on lines +48 to +51
const {pathname} = Router
if(pathname == '/' && (token=="null" || token==undefined)){
router.push('/login')
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should have kept the code for authentication separate like in the middleware directory

This was referenced Jul 6, 2021
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

Successfully merging this pull request may close these issues.

2 participants