Question: Suppose the GrardAuthService with method canActivate() was created already and available for you to use in an Angular project (with JWT discussed in class). You
Suppose the GrardAuthService with method canActivate() was created already and available for you to use in an Angular project (with JWT discussed in class). You are required to prevent unauthorized user from accessing the ProjectsComponent using the path "/projects". Which file you need to update? And show your code added for doing this. ?
If you've completed your code of the InterceptTokenServer in an Angular project (with JWT discussed in class), what other work you need to do to make the service work?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
