Using JWT (JSON Web Token)to generate bearer for Postman

Name is Gil
1 min readJan 23, 2018

--

A lot of us are familiar with using Postman as a primary tool to inspect and test APIs. It’s very handy when you’re developing or consuming an API, using the tool you are able to test and see how the data response is structured.

Here’s a quick step on how you can use it for APIs that provides “SECRET KEY’ and “API KEY” to generate what’s called the bearer token.

First head out to JWT.IO and use debugger to put some information. 2 things you need, <SECRET KEY> and <API KEY>.

The only thing you need to worry about here is PAYLOAD:DATA portion. Your ISS: <API KEY> given by your provider of API, and the SECRET KEY under Verify Signature portion, and you’ll end up with this one..

And there it is, your bearer token now you can create a request on your POSTMAN by going to authentication and under TYPE, select Bearer Token.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Name is Gil
Name is Gil

Written by Name is Gil

Software Engineer, Filmmaker, Entrepreneur, Father

No responses yet

Write a response