Auth 0x05 APIs 0x01
First we will get the JWT of user jeremy with valid cred
curl -X POST -H "Content-Type: application/json" -d '{"username": "jeremy", "password": "cheesecake"}' http://localhost/labs/api/login.phpjeremy
eyJhbGciOiJub25lIiwidHlwIjoiSldUIn0=.eyJ1c2VyIjoiamVyZW15Iiwicm9sZSI6InN0YWZmIn0=.
Now we get the information using his JWT

Now we try to update the bio
We can see that bio have "New bio information"

Now we will get the jwt of user jessamy

Get the information for jessamy

Now with the API
We will change the information of jessamy user via jeremy JWT

Once again to check if we change it in jessamy

Last updated