Ovi / DummyJSON

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.
http://dummyjson.com
Other
1.79k stars 196 forks source link

Implement Token Validation for Endpoint #69

Closed AmeerAmjed closed 5 months ago

AmeerAmjed commented 5 months ago

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.

Ovi commented 5 months ago

We already have this feature, please see https://dummyjson.com/auth/RESOURCE

You can use /auth before any resource to leverage the authentication mechanism.