Simple web app that lets citizens report cases of corruption to the appropriate authorities. Users can also report on things that needs government intervention.
What does this PR do?
This PR implements Json Web Token (JWT) for providing secured access to private endponts. This ensures that requires made to private enpoints are authorized.
Description of Task to be completed?
Install and JWT
Update signup and log in endpoints to generate and transmit authorization tokens
Update authorization middleware to verify authorization tokens
How should this be manually tested?
Clone this repo to your local system
cd into iReporter and run npm install
Create the .env file and populate with the corresponding jwt credentials
Run the program; npm start
Test the enpoints using POSTMAN or an equivalent
Any background context you want to provide?
N/A
What are the relevant pivotal tracker stories?#162526621
What does this PR do? This PR implements Json Web Token (JWT) for providing secured access to private endponts. This ensures that requires made to private enpoints are authorized.
Description of Task to be completed?
How should this be manually tested? Clone this repo to your local system cd into iReporter and run npm install Create the .env file and populate with the corresponding jwt credentials Run the program; npm start Test the enpoints using POSTMAN or an equivalent
Any background context you want to provide? N/A
What are the relevant pivotal tracker stories? #162526621
Screenshots (if appropriate) N/A
Questions: N/A