You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implement access control for user-related routes to ensure that only authenticated users can access them. Specifically, the following routes need to be protected:
GET /permissions
Key Requirements:
1. Authentication Middleware:
Use the validateAccessToken middleware to ensure that only logged-in users can access these routes.
Description:
Implement access control for user-related routes to ensure that only authenticated users can access them. Specifically, the following routes need to be protected:
GET /permissions
Key Requirements:
1. Authentication Middleware:
validateAccessToken
middleware to ensure that only logged-in users can access these routes.2. Route Protection:
Remove Route:
4. Testing:
401 Unauthorized
response when trying to access these routes.Tasks:
validateAccessToken
middleware to the/permissions
Post /permissions route
The text was updated successfully, but these errors were encountered: