# Import JWT Token to a collection

**URL:** <https://community.postman.com/t/import-jwt-token-to-a-collection/16716>\
**Category:** Help Hub\
**Tags:** collections\
**Created:** [October 13, 2020, 3:21pm UTC](https://community.postman.com/t/import-jwt-token-to-a-collection/16716 "2020-10-13T15:21:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkredfoot](https://avatars.discourse-cdn.com/v4/letter/j/b19c9b/32.png) [@jkredfoot](https://community.postman.com/u/jkredfoot)\
**Post date:** [October 13, 2020, 3:21pm UTC](https://community.postman.com/t/import-jwt-token-to-a-collection/16716/1 "2020-10-13T15:21:44Z")

</div>

I am trying to use a collection that requires a jwt token be input. This token is not static and times out after a prerequisite amount of time. The token formation documentation for the api is written in python. When I try to use OAuth2.0, there are not enough application secret fields. This application has a unique ID, token ID and a secret so using this method is not possible. I would like to know how I can pipe this python code into postman to update the Bearer Token field? Is this even possible? Am I not using OAuth 2.0 correctly? Any advice is welcomed! Thank you for the help.

---

<div class="post-metadata">

**Author:** ![allenheltondev](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/allenheltondev/32/31738_2.png) [@allenheltondev](https://community.postman.com/u/allenheltondev)\
**Post date:** [October 14, 2020, 11:34am UTC](https://community.postman.com/t/import-jwt-token-to-a-collection/16716/2 "2020-10-14T11:34:24Z")

</div>

You can reference [this blog post](https://www.readysetcloud.io/blog/allen.helton/how-to-automate-oauth2-token-renewal-in-postman-864420d381a0/) to see how you can auto generate/renew an OAuth2.0 token in a collection pre-request script.

Sounds like you’ll need to modify the script slightly to accommodate the additional fields you have, but it shouldn’t be too bad.
