0xkash / rest-scraper

A real estate scraper with a built in REST API
1 stars 0 forks source link

Implement API token validation #4

Open 0xkash opened 1 year ago

0xkash commented 1 year ago

The API needs token validation for front end websites to access it. I want to be able to use a command like rest-scraper create-token {url} to add a new website to allowed CORS url's and generate a token. Also with that I want to be able to revoke a token by either the URL or token ID (example: rest-scraper revoke-token {url} or rest-scraper revoke-token -t {token_id}