'Bearer token in postman

I want to set a Bearer Token in postman

For some reason my Postman doesn't have the Bearer Token option in the Auth dropdown

What can I do in Postman to show that option? Any ideas where I can find it? Regards.



Solution 1:[1]

I am using Postman v7.0.9.

Add accessToken variable to postman environmental variable.

enter image description here

Then use Tests tab to write javascript.

enter image description here

let jsonData = pm.response.json();
let token = jsonData.accessToken;
pm.environment.set('accessToken', token);

If you are usign the current version "Bearer Token" type is under Authorization tab.

enter image description here

Solution 2:[2]

You have a some options to add authorization type:

1) Go headers tap and add => key: Authorization value:Bearer

2) Create collection > select authorization

3) click code and add headers

enter image description here

headers:
{
  'Postman-Token': '55..',
  'cache-control': 'no-cache',
  'Authorization': 'Bearer eyJhbG...'
}

Solution 3:[3]

Feb, 2021 - Following worked for me

From the type, choose 'Bearer Token'.

Enter Token in the field as shown below in screenshot:

enter image description here

Solution 4:[4]

The problem is with Postman with Chrome or Chrome extension of Postman, It doesn't have more authorization options.

So Just download the new postman app, it has more features and you will get the Bearer Token option too.

Solution 5:[5]

I faced this problem a long time ago. And I solved this problem by installing the Desktop version and again login with Google account. After that Bearer Token visible in postman!

In my case, I used Windows 8.1 and 64 bit.

here you can get the desktop version

Solution 6:[6]

Add manually in Header, Key as Authorization and Value as Bearer + space then your token like the below snapshot.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1
Solution 2 Robson
Solution 3 Rajeev Jayaswal
Solution 4 n-verbitsky
Solution 5 Abu Siddique
Solution 6