ErisMik / Minutes-Made

Train ourselves and not the tech
3 stars 1 forks source link

MM-PulpFree jwt auth #111

Closed MuchToKnow closed 5 years ago

MuchToKnow commented 5 years ago

You now need a JWT to make requests to PulpFree that aren't login/signup :smiley:!

In order to do this, just login as a user in the db:

Minutes-Login

And then copy/paste the JWT returned in the response into an authorization header as a bearer token like so:

Bearer-Token

Postman should then make a request header that looks like: Authorization: Bearer <JWT Token>

And then you can make requests like normal! I made the JWTs expire after a week so you shouldn't have to log in too often while working on PulpFree.