DummyJSON.com provides different types of REST Endpoints filled with JSON data which you can use in developing the frontend with your favorite framework and library without worrying about writing a backend.
Add a new feature that includes a token with each endpoint request. This token should be validated, and the response should be tailored to the request. If the token is expired, avoid sending an unauthorized error.
Note: Authentication should not be mandatory for every endpoint; implement this only when an invalid token is provided in the header.
Add a new feature that includes a token with each endpoint request. This token should be validated, and the response should be tailored to the request. If the token is expired, avoid sending an unauthorized error.
Note: Authentication should not be mandatory for every endpoint; implement this only when an invalid token is provided in the header.