# How to store tokens generated using OAuth 2.0 as environment variables

**URL:** <https://community.postman.com/t/how-to-store-tokens-generated-using-oauth-2-0-as-environment-variables/32135>\
**Category:** Help Hub\
**Tags:** tests, authentication\
**Created:** [February 1, 2022, 10:43pm UTC](https://community.postman.com/t/how-to-store-tokens-generated-using-oauth-2-0-as-environment-variables/32135 "2022-02-01T22:43:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaa23988](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@aaa23988](https://community.postman.com/u/aaa23988)\
**Post date:** [February 1, 2022, 10:43pm UTC](https://community.postman.com/t/how-to-store-tokens-generated-using-oauth-2-0-as-environment-variables/32135/1 "2022-02-01T22:43:40Z")

</div>

_My question_:  
I am trying to store the access token generated using Authorization type as OAuth 2.0 as an environment variable. Is there a way I can do it? Attaching screenshot of the field for which I need to store the value

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/2/6/26cc1924f7bb3090cdbe81f1ac62cac2ae11fce4.png)

---

<div class="post-metadata">

**Author:** ![kevinc-postman](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/kevinc-postman/32/12774_2.png) [@kevinc-postman](https://community.postman.com/u/kevinc-postman)\
**Post date:** [February 1, 2022, 11:08pm UTC](https://community.postman.com/t/how-to-store-tokens-generated-using-oauth-2-0-as-environment-variables/32135/2 "2022-02-01T23:08:03Z")

</div>

Hey there!  
First I’d like to welcome you to the Postman community and congrats on your first post!

So one way that you could do this is copy the token from your highlighted area and paste it into a variable in the environment section of Postman.

From there, all you need to do is call that variable from the highlighted box like so

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/4/4/4450e02e31feb2de4cdae3e3d66ea15b70cc5dac.png)
