View on GitHub

DevQuest 2024

DevQuest is an international hackathon organized under the tertiary category of CODEFEST, aimed at showcasing the unique talents, creativity, and innovations of undergraduates from universities and institutes worldwide.

Challenge 2 - Authentication & Authorization

Part a

Here you need to check if the user is authenticated for accessing any API endpoint.

For any request, if the token is not provided it should return the following meassage in the response.

Access denied! No token provided

For any request, if an invalid token is provided it should return the following message in the response.

Invalid token

Part b

In this part, if a non-admin user try to access any admin user API endpoint it should return the following response:

Access denied!