How can I retrieve access token name in pre-request script?

Hello,

I’m using the Authentication feature of Postman to get an access token for an OAuth2 app. I would like to retrieve the current access token name (if available) from the pre-request script.

So far I’m unable to find a way to do it.

Is it even possible? Would be great if someone could give me advice.

Thanks in advance

@Trallnag Welcome to the Community :partying_face:

Yes this is very common question and you can find many in the forum which are already answered. For quick reference, please check this post.