# Automating test collection with Auth0

**URL:** <https://community.postman.com/t/automating-test-collection-with-auth0/32137>\
**Category:** Help Hub\
**Created:** [February 1, 2022, 11:00pm UTC](https://community.postman.com/t/automating-test-collection-with-auth0/32137 "2022-02-01T23:00:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mission-pilot-508057](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/mission-pilot-508057/32/11017_2.png) [@mission-pilot-508057](https://community.postman.com/u/mission-pilot-508057)\
**Post date:** [February 1, 2022, 11:00pm UTC](https://community.postman.com/t/automating-test-collection-with-auth0/32137/1 "2022-02-01T23:00:24Z")

</div>

I have a set of requests in a collection which I would like to automate, the problem is it requires Auth0 login before it can run the API calls.

I have no idea how to automate the login, would someone be able to 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:** [February 3, 2022, 12:38pm UTC](https://community.postman.com/t/automating-test-collection-with-auth0/32137/2 "2022-02-03T12:38:21Z")

</div>

Hey @mission-pilot-508057, welcome to the community!

There is a lot of nuance in the answer to your question. I’ll share [this link](https://community.postman.com/t/medium-article-how-to-automate-oauth2-token-renewal-in-postman/6630/9) to an article I wrote a couple years ago on automatic token renewal and see how far that gets you.

It might not match your use case exactly, but it should at least give you an idea of the steps that need to be taken.
