Get and Post method using JWT based token
- wamp or xampp server installed on your local machine
- You will require postman if you are going to test my own function.
- Get a copy of the project from this repository .
- Then unzip and copy the folder inside www director of wamp or htdocs directory.
- After that, paste the respective url like this http://localhost/jwt_authentication/api.php with method POST,body parameters func:postmethod and basic authorization header with username(sarita) and password(sarita@123) and send the request.
- The response will be a json token.Copy the token and pass it into bearer token header of the get user info api i.e; http://localhost/jwt_authentication/api.php with method POST,body parameters func:getmethod and send the request.
- You can see the output like below/.