# How to Use Auth Token in Php Curl processor file

**URL:** <https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930>\
**Category:** API and Webhooks\
**Created:** [December 4, 2019, 5:39pm UTC](https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930 "2019-12-04T17:39:48Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh.hamilton](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@josh.hamilton](https://devforum.zoom.us/u/josh.hamilton)\
**Post date:** [December 4, 2019, 5:39pm UTC](https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930/1 "2019-12-04T17:39:48Z")

</div>

Good morning,

I am looking to use the Zoom API in order to register people for a webinar event using a form directly on our website

I have in currently working, but the access token expires after 60 mins and then it stops working.

I know how to use the renew token in order to get a new access token, but that refreshes both and then the access token expires again 60 mins later.

It does not seem to make much sense for our processor file to continue to have to generate tokens everytime it is called. Not even sure I could figure out a way to set that up.

Is there anyway to get an access token that doesnt expire at the 60 minute mark? Trying to figure out how to call the api in our php file without having to reset the access token each time.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 4, 2019, 7:23pm UTC](https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930/2 "2019-12-04T19:23:11Z")

</div>

Hey @josh.hamilton, thanks for posting and using Zoom!

Depending on your use case, you can use the JWT Token from a JWT App in place of the access\_token which does not need to be refreshed depending on the expire time you give it.

[https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app](https://marketplace.zoom.us/docs/guides/getting-started/app-types/create-jwt-app)

```json
{
   "Authorization": "Bearer: JWT_TOKEN_HERE"
}

```

Let me know if you have additional questions!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![josh.hamilton](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@josh.hamilton](https://devforum.zoom.us/u/josh.hamilton)\
**Post date:** [December 4, 2019, 7:43pm UTC](https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930/3 "2019-12-04T19:43:01Z")

</div>

I am trying to implement the following item:

[https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate](https://marketplace.zoom.us/docs/api-reference/zoom-api/webinars/webinarregistrantcreate)

From everything I have read, I need to use OAuth. Is it possible to just use the JWT token in place of the OAuth Access Token?

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 4, 2019, 8:06pm UTC](https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930/4 "2019-12-04T20:06:17Z")

</div>

Hey @josh.hamilton,

Yes it is possible to use the JWT Token in place of the OAuth Access Token.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![josh.hamilton](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@josh.hamilton](https://devforum.zoom.us/u/josh.hamilton)\
**Post date:** [December 4, 2019, 8:26pm UTC](https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930/5 "2019-12-04T20:26:47Z")

</div>

Perfect, that worked.

I will continue to monitor, but I think we should be good.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 4, 2019, 8:39pm UTC](https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930/6 "2019-12-04T20:39:21Z")

</div>

Happy to hear!

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:06pm UTC](https://devforum.zoom.us/t/how-to-use-auth-token-in-php-curl-processor-file/6930/7 "2020-08-21T19:06:46Z")

</div>


