Decoding a JWT by hand — copying the token, heading to jwt.io, pasting it in, and hunting for the claim you need — breaks your flow every single time. To make things simpler, I wrote this little plugin for the Yaak API client which provides a template function to decode any JWT token and optionally filter the result using a JSONPath expression.
To use this plugin, proceed as follows:
- In Yaak, go to
Settings > Plugins, search forJWT Decodeand hitInstall. - Open any request and go to the tab where you need the decoded value (e.g.
Headers,Body, orQuery). - In the value field, start typing
jwt.decodeand select the corresponding function. - Click on the template and paste in your JWT token.
- Optionally, provide a JSONPath expression (e.g.
$.data.login) to extract a specific field.
That's it!